diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-03-26 00:38:23 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-03-26 12:27:07 -0700 |
commit | af3fffe0d2717c5bfbe8d185479b53d434a72d7e (patch) | |
tree | 52159940ad22eb1f69b21b7f968bd1777834c518 | |
parent | ed6a701f0829b37a29bd3d168752b3eef058d010 (diff) | |
download | portage-af3fffe0d2717c5bfbe8d185479b53d434a72d7e.tar.gz portage-af3fffe0d2717c5bfbe8d185479b53d434a72d7e.tar.bz2 portage-af3fffe0d2717c5bfbe8d185479b53d434a72d7e.zip |
unmerge: fix PORTAGE_BACKGROUND logic
-rw-r--r-- | pym/_emerge/actions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 84ed27c9e..865c68396 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2602,6 +2602,13 @@ def action_uninstall(settings, trees, ldpath_mtimes, sched._background = sched._background_mode() sched._status_display.quiet = True + if sched._background: + sched.settings.unlock() + sched.settings["PORTAGE_BACKGROUND"] = "1" + sched.settings.backup_changes("PORTAGE_BACKGROUND") + sched.settings.lock() + sched.pkgsettings[root] = portage.config(clone=sched.settings) + if action in ('clean', 'unmerge') or \ (action == 'prune' and "--nodeps" in opts): # When given a list of atoms, unmerge them in the order given. |