From: Zac Medico Date: Thu, 9 Sep 2010 22:49:59 +0000 (-0700) Subject: Bug #336651 - Fix Scheduler._restart_if_necessary() to correctly X-Git-Tag: v2.2_rc79~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74d344ca49331ee866371f08b5f41eed9b9279c0;p=portage.git Bug #336651 - Fix Scheduler._restart_if_necessary() to correctly handle arguments like --exclude that are stored as a list since they use the 'append' action. --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index b6837f2cb..d45f26d9f 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -923,8 +923,12 @@ class Scheduler(PollScheduler): if myopt not in bad_resume_opts: if myarg is True: mynewargv.append(myopt) + elif isinstance(myarg, list): + # arguments like --exclude that use 'append' action + for x in myarg: + mynewargv.append("%s=%s" % (myopt, x)) else: - mynewargv.append(myopt +"="+ str(myarg)) + mynewargv.append("%s=%s" % (myopt, myarg)) # priority only needs to be adjusted on the first run os.environ["PORTAGE_NICENESS"] = "0" os.execv(mynewargv[0], mynewargv)