From: JF Ding Date: Mon, 5 Dec 2011 09:30:28 +0000 (+0800) Subject: transfer "-d" and "-v" opts to embedded shell scripts X-Git-Tag: v0.1~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35fe2aec393ed07f3f4b565e0943e4e94a65969e;p=tools%2Fgbs.git transfer "-d" and "-v" opts to embedded shell scripts --- diff --git a/tools/tizenpkg b/tools/tizenpkg index c274da4..aa78bc5 100755 --- a/tools/tizenpkg +++ b/tools/tizenpkg @@ -32,7 +32,12 @@ def _fall_to_shell(cmdname): def _run_embed_sh(self, argv): # this command is a shell script wrapper shpath = os.path.join(utils.get_share_dir(), cmdname + '.sh') - runner.embed(['bash', shpath] + list(argv)[1:]) + cmdlist = ['bash', shpath] + if msger.get_loglevel() == 'debug': + cmdlist.append('-d') + elif msger.get_loglevel() == 'verbose': + cmdlist.append('-v') + runner.embed(cmdlist + list(argv)[1:]) return _run_embed_sh cmdmod = 'tizenpkg.cmd_' + cmdname