summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/Scheduler.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-07 09:59:41 -0700
committerZac Medico <zmedico@gentoo.org>2012-10-07 09:59:41 -0700
commit61262d1c27e372abb3dc9ba914b1640d2ba65a7f (patch)
tree9cb8654115d443e25be78f76df8d0eb7509cc947 /pym/_emerge/Scheduler.py
parentae17d89347d2c9a604ccc984fb9f83c79e789162 (diff)
downloadportage-61262d1c27e372abb3dc9ba914b1640d2ba65a7f.tar.gz
portage-61262d1c27e372abb3dc9ba914b1640d2ba65a7f.tar.bz2
portage-61262d1c27e372abb3dc9ba914b1640d2ba65a7f.zip
action_uninstall: use PollScheduler not Scheduler
The PollScheduler class suffices here, if we just add a small amount of logic to calculate the _background attribute from the emerge opts.
Diffstat (limited to 'pym/_emerge/Scheduler.py')
-rw-r--r--pym/_emerge/Scheduler.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index 1814344de..c5779cb9a 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -135,8 +135,7 @@ class Scheduler(PollScheduler):
portage.exception.PortageException.__init__(self, value)
def __init__(self, settings, trees, mtimedb, myopts,
- spinner, mergelist=None, favorites=None, graph_config=None,
- uninstall_only=False):
+ spinner, mergelist=None, favorites=None, graph_config=None):
PollScheduler.__init__(self, main=True)
if mergelist is not None:
@@ -152,7 +151,6 @@ class Scheduler(PollScheduler):
self._spinner = spinner
self._mtimedb = mtimedb
self._favorites = favorites
- self._uninstall_only = uninstall_only
self._args_set = InternalPackageSet(favorites, allow_repo=True)
self._build_opts = self._build_opts_class()
@@ -327,8 +325,6 @@ class Scheduler(PollScheduler):
ignore_built_slot_operator_deps = self.myopts.get(
"--ignore-built-slot-operator-deps", "n") == "y"
for root in self.trees:
- if self._uninstall_only:
- continue
if graph_config is None:
fake_vartree = FakeVartree(self.trees[root]["root_config"],
pkg_cache=self._pkg_cache, dynamic_deps=dynamic_deps,