From 12a0a50c38f04f8ad02af87c31c5263aac96f6a6 Mon Sep 17 00:00:00 2001 From: Grigori Fursin Date: Mon, 27 Feb 2017 10:43:18 +0100 Subject: [PATCH] cosmetic change when adding new module --- ck/repo/module/module/module.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ck/repo/module/module/module.py b/ck/repo/module/module/module.py index 5a510f53c3..93fe8eddcb 100644 --- a/ck/repo/module/module/module.py +++ b/ck/repo/module/module/module.py @@ -109,34 +109,36 @@ def add(i): # If console mode, ask some questions if quiet!='yes' and o=='con': if desc=='': + ck.out('') r=ck.inp({'text':'Add brief module description: '}) desc=r['string'] - ck.out('') - if license=='' and ck.cfg.get('default_license','')!='': + ck.out('') r=ck.inp({'text':'Add brief module license (or Enter to use "'+ck.cfg['default_license']+'"): '}) license=r['string'] if license=='': license=ck.cfg['default_license'] if copyright=='' and ck.cfg.get('default_copyright','')!='': + ck.out('') r=ck.inp({'text':'Add brief module copyright (or Enter to use "'+ck.cfg['default_copyright']+'"): '}) copyright=r['string'] if copyright=='': copyright=ck.cfg['default_copyright'] - ck.out('') - if developer=='' and ck.cfg.get('default_developer','')!='': + ck.out('') r=ck.inp({'text':'Add module\'s developer (or Enter to use "'+ck.cfg['default_developer']+'"): '}) developer=r['string'] if developer=='': developer=ck.cfg['default_developer'] if developer_email=='' and ck.cfg.get('default_developer_email','')!='': + ck.out('') r=ck.inp({'text':'Add module\'s developer email (or Enter to use "'+ck.cfg['default_developer_email']+'"): '}) developer_email=r['string'] if developer_email=='': developer_email=ck.cfg['default_developer_email'] if developer_webpage=='' and ck.cfg.get('default_developer_webpage','')!='': + ck.out('') r=ck.inp({'text':'Add module\'s developer webpage (or Enter to use "'+ck.cfg['default_developer_webpage']+'"): '}) developer_webpage=r['string'] if developer_webpage=='': developer_webpage=ck.cfg['default_developer_webpage']