Show option arguments in emerge.log arg list.
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Nov 2011 13:39:02 +0000 (05:39 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 17 Nov 2011 13:39:02 +0000 (05:39 -0800)
pym/_emerge/main.py

index 5e9f13e3c21ffdacd059280ee57b069877d297fc..62af0ad03fcc652f8410e1d55b55f2da3e5ef144 100644 (file)
@@ -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: