diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-03-26 00:38:23 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-03-26 00:38:23 -0700 |
commit | a1a23d2bc25a324b24c180dc982d9442229dc9eb (patch) | |
tree | 97b73db4b8837931808785c77ed1582d1a39589a /pym/_emerge | |
parent | dc6a4c122e827baf28729caf2dbb32576072d88f (diff) | |
download | portage-a1a23d2bc25a324b24c180dc982d9442229dc9eb.tar.gz portage-a1a23d2bc25a324b24c180dc982d9442229dc9eb.tar.bz2 portage-a1a23d2bc25a324b24c180dc982d9442229dc9eb.zip |
unmerge: fix PORTAGE_BACKGROUND logic
Diffstat (limited to 'pym/_emerge')
-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 f79f9279d..53d18804f 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2623,6 +2623,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. |