some minor fixes
authorGui Chen <gui.chen@intel.com>
Sun, 27 Jan 2013 03:37:24 +0000 (11:37 +0800)
committerGui Chen <gui.chen@intel.com>
Sun, 27 Jan 2013 05:45:59 +0000 (13:45 +0800)
fix --record-pkgs missing 'vcs' in help text
fix debugsource invalid in --install-pkgs

Change-Id: Ib61c3ec587b7173cc22284779fac05daf910f684
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/creator.py

index b23cad2..a829506 100644 (file)
@@ -83,7 +83,7 @@ class Creator(cmdln.Cmdln):
                              help='Record the info of installed packages, '
                                   'multiple values can be specified which '
                                   'joined by ",", valid values: "name", '
-                                  '"content", "license"')
+                                  '"content", "license", "vcs"')
         optparser.add_option('', '--pkgmgr', type='string', dest='pkgmgr',
                              default=None,
                              help='Specify backend package manager')
@@ -233,7 +233,7 @@ class Creator(cmdln.Cmdln):
         if self.options.install_pkgs:
             configmgr.create['install_pkgs'] = []
             for pkgtype in self.options.install_pkgs.split(','):
-                if pkgtype not in ('source', 'debuginfo'):
+                if pkgtype not in ('source', 'debuginfo', 'debugsource'):
                     raise errors.Usage('Invalid parameter specified: "%s", '
                                        'valid values: source, debuginfo, '
                                        'debusource' % pkgtype)