diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-09 15:49:59 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-09 15:49:59 -0700 |
commit | 74d344ca49331ee866371f08b5f41eed9b9279c0 (patch) | |
tree | cec288f21979d410267794cb2c1a1e82cb1bbca4 | |
parent | 20375de40f06e9298fe6b18dad0b0a36d1b59ec6 (diff) | |
download | portage-74d344ca49331ee866371f08b5f41eed9b9279c0.tar.gz portage-74d344ca49331ee866371f08b5f41eed9b9279c0.tar.bz2 portage-74d344ca49331ee866371f08b5f41eed9b9279c0.zip |
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.
-rw-r--r-- | pym/_emerge/Scheduler.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |