Scheduler.py: remove unused vars (pyflakes)
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Nov 2011 02:09:10 +0000 (18:09 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 17 Nov 2011 02:09:10 +0000 (18:09 -0800)
pym/_emerge/Scheduler.py

index 47f7c4591c17fcd24889bc0903ca1dcccb24d7b5..fb8fdfb7305d14822a108981ca31754dd6288db5 100644 (file)
@@ -742,7 +742,6 @@ class Scheduler(PollScheduler):
                        self._status_msg("Starting parallel fetch")
 
                        prefetchers = self._prefetchers
-                       getbinpkg = "--getbinpkg" in self.myopts
 
                        for pkg in self._mergelist:
                                # mergelist can contain solved Blocker instances
@@ -1159,12 +1158,9 @@ class Scheduler(PollScheduler):
                        # If only one package failed then just show it's
                        # whole log for easy viewing.
                        failed_pkg = self._failed_pkgs_all[-1]
-                       build_dir = failed_pkg.build_dir
                        log_file = None
                        log_file_real = None
 
-                       log_paths = [failed_pkg.build_log]
-
                        log_path = self._locate_failure_log(failed_pkg)
                        if log_path is not None:
                                try:
@@ -1260,9 +1256,6 @@ class Scheduler(PollScheduler):
 
        def _locate_failure_log(self, failed_pkg):
 
-               build_dir = failed_pkg.build_dir
-               log_file = None
-
                log_paths = [failed_pkg.build_log]
 
                for log_path in log_paths:
@@ -1445,7 +1438,6 @@ class Scheduler(PollScheduler):
 
                self._add_prefetchers()
                self._add_packages()
-               pkg_queue = self._pkg_queue
                failed_pkgs = self._failed_pkgs
                portage.locks._quiet = self._background
                portage.elog.add_listener(self._elog_listener)