summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDohyung Kim <dohyung2.kim@samsung.com>2017-11-15 11:22:49 +0900
committeryuhuan.yang <yuhuan.yang@samsung.com>2018-01-30 11:36:39 +0800
commit1ab622c921a7e25516dc90806b250273793a6b1c (patch)
treec34c124dda9bf4ef8994be7258ffdb867d696956
parent2f7aece3af62a2120b2117799c21f5ec5e937665 (diff)
downloadmic-1ab622c921a7e25516dc90806b250273793a6b1c.tar.gz
mic-1ab622c921a7e25516dc90806b250273793a6b1c.tar.bz2
mic-1ab622c921a7e25516dc90806b250273793a6b1c.zip
Display all rpm debug messages with --rpm-debug
Change-Id: I66ed6a999b20c94238e7fdc29ee68782ab4cd241 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
-rwxr-xr-xmic/cmd_create.py7
-rwxr-xr-xtools/mic1
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():
diff --git a/tools/mic b/tools/mic
index e807a77..70000a7 100755
--- a/tools/mic
+++ b/tools/mic
@@ -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")