From fa6197246b3648f609df06aef2c23ab7020e6376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 31 May 2019 09:08:19 +0200 Subject: [PATCH] Remove unused variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/gather.py | 2 -- pungi/multilib_yum.py | 1 - pungi/wrappers/kojiwrapper.py | 4 ---- 3 files changed, 7 deletions(-) diff --git a/pungi/gather.py b/pungi/gather.py index 6c152e58..2c68561c 100644 --- a/pungi/gather.py +++ b/pungi/gather.py @@ -834,7 +834,6 @@ class Pungi(PungiBase): """Cycle through the list of packages and get package object matches.""" searchlist = [] # The list of package names/globs to search for - matchdict = {} # A dict of objects to names excludeGroups = [] # A list of groups for removal defined in the ks file # precompute pkgs and pkg_refs to speed things up @@ -1775,7 +1774,6 @@ class Pungi(PungiBase): self.logger.info("ARCH: arm, not doing doCreateIsos().") return - isolist = [] ppcbootinfo = '/usr/share/lorax/config_files/ppc' pungi.util._ensuredir(self.isodir, self.logger, diff --git a/pungi/multilib_yum.py b/pungi/multilib_yum.py index c58c9638..6c74e661 100755 --- a/pungi/multilib_yum.py +++ b/pungi/multilib_yum.py @@ -71,7 +71,6 @@ def read_runtime_patterns_from_file(path): def expand_runtime_patterns(patterns): pm = pungi.pathmatch.PathMatch() - result = [] for path, pattern in patterns: for root in ("", "/opt/*/*/root"): # include Software Collections: /opt///root/... diff --git a/pungi/wrappers/kojiwrapper.py b/pungi/wrappers/kojiwrapper.py index 359acbce..4a98efbf 100644 --- a/pungi/wrappers/kojiwrapper.py +++ b/pungi/wrappers/kojiwrapper.py @@ -435,7 +435,6 @@ class KojiWrapper(object): def get_wrapped_rpm_path(self, task_id, srpm=False): result = [] - parent_task = self.koji_proxy.getTaskInfo(task_id, request=True) task_info_list = [] task_info_list.extend(self.koji_proxy.getTaskChildren(task_id, request=True)) @@ -446,9 +445,6 @@ class KojiWrapper(object): task_info = i break - # Check parent_task if it's scratch build - scratch = parent_task["request"][-1].get("scratch", False) - # Get results of wrapperRPM task # {'buildroot_id': 2479520, # 'logs': ['checkout.log', 'root.log', 'state.log', 'build.log'],