From: Zac Medico Date: Thu, 17 Nov 2011 13:39:02 +0000 (-0800) Subject: Show option arguments in emerge.log arg list. X-Git-Tag: v2.2.0_alpha76~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0d5d620659397ff0c005f2aadf75a43835818d6;p=portage.git Show option arguments in emerge.log arg list. --- diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 5e9f13e3c..62af0ad03 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1894,7 +1894,17 @@ def emerge_main(args=None): encoding=_encodings['content'], errors='replace')) myelogstr="" if myopts: - myelogstr=" ".join(myopts) + opt_list = [] + for opt, arg in myopts.items(): + if arg is True: + opt_list.append(opt) + elif isinstance(arg, list): + # arguments like --exclude that use 'append' action + for x in arg: + opt_list.append("%s=%s" % (opt, x)) + else: + opt_list.append("%s=%s" % (opt, arg)) + myelogstr=" ".join(opt_list) if myaction: myelogstr+=" "+myaction if myfiles: