diff options
-rwxr-xr-x | mic/cmd_create.py | 7 | ||||
-rwxr-xr-x | tools/mic | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mic/cmd_create.py b/mic/cmd_create.py index 3189af2..7ef7e46 100755 --- a/mic/cmd_create.py +++ b/mic/cmd_create.py @@ -76,6 +76,13 @@ def main(parser, args, argv): msger.set_loglevel('DEBUG')
+ if args.rpm_debug:
+ try:
+ import rpm
+ rpm.setVerbosity(rpm.RPMLOG_DEBUG)
+ except ImportError:
+ pass
+
#check the imager type
createrClass = None
for subcmd, klass in pluginmgr.get_plugins('imager').iteritems():
@@ -136,6 +136,7 @@ def create_parser(parser): default=None, help='Run script on local PC after image created') parent_parser.add_argument('--tpk_install', action='store', dest='tpk_install', default=None, help='Copy tpk file to /usr/apps/.preload-tpk') + parent_parser.add_argument('--rpm-debug', action='store_true', dest='rpm_debug', help='Set debug mode for rpm install') parser.set_defaults(alias="cr") |