equal
deleted
inserted
replaced
610 {'short': 'v', 'type' : 'yn', 'metavar': '<verbose>', |
610 {'short': 'v', 'type' : 'yn', 'metavar': '<verbose>', |
611 'default': 'n', |
611 'default': 'n', |
612 'help': 'verbose mode: will ask all possible configuration questions', |
612 'help': 'verbose mode: will ask all possible configuration questions', |
613 } |
613 } |
614 ), |
614 ), |
|
615 ("short-description", |
|
616 {'short': 's', 'type': 'string', 'metavar': '<short description>', |
|
617 'help': 'short description for the cube', |
|
618 } |
|
619 ), |
615 ("author", |
620 ("author", |
616 {'short': 'a', 'type' : 'string', 'metavar': '<author>', |
621 {'short': 'a', 'type' : 'string', 'metavar': '<author>', |
617 'default': 'LOGILAB S.A. (Paris, FRANCE)', |
622 'default': 'LOGILAB S.A. (Paris, FRANCE)', |
618 'help': 'cube author', |
623 'help': 'cube author', |
619 } |
624 } |
705 'cube distname should be a valid debian package name') |
710 'cube distname should be a valid debian package name') |
706 cubedir = osp.join(destdir, distname) |
711 cubedir = osp.join(destdir, distname) |
707 if osp.exists(cubedir): |
712 if osp.exists(cubedir): |
708 self.fail("%s already exists!" % cubedir) |
713 self.fail("%s already exists!" % cubedir) |
709 skeldir = osp.join(BASEDIR, 'skeleton') |
714 skeldir = osp.join(BASEDIR, 'skeleton') |
710 longdesc = shortdesc = input( |
715 longdesc = shortdesc = self['short-description'] or input( |
711 'Enter a short description for your cube: ') |
716 'Enter a short description for your cube: ') |
712 if verbose: |
717 if verbose: |
713 longdesc = input( |
718 longdesc = input( |
714 'Enter a long description (leave empty to reuse the short one): ') |
719 'Enter a long description (leave empty to reuse the short one): ') |
715 dependencies = { |
720 dependencies = { |