From 74d344ca49331ee866371f08b5f41eed9b9279c0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 9 Sep 2010 15:49:59 -0700 Subject: 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. --- pym/_emerge/Scheduler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pym') 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) -- cgit v1.2.3-1-g7c22