From f6162b90ddaafe7ad751acaa91a74cfd04b76479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 31 May 2019 10:16:44 +0200 Subject: [PATCH] Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/phases/gather/methods/method_hybrid.py | 7 +------ pungi/wrappers/variants.py | 1 - tests/helpers.py | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pungi/phases/gather/methods/method_hybrid.py b/pungi/phases/gather/methods/method_hybrid.py index a7b48396..9fe43b32 100644 --- a/pungi/phases/gather/methods/method_hybrid.py +++ b/pungi/phases/gather/methods/method_hybrid.py @@ -17,7 +17,6 @@ import gzip import os from collections import defaultdict from fnmatch import fnmatch -from itertools import chain import createrepo_c as cr import kobo.rpmlib @@ -148,8 +147,6 @@ class GatherMethodHybrid(pungi.phases.gather.method.GatherMethodBase): for var in self.compose.all_variants.values(): for mmd in var.arch_mmds.get(self.arch, {}).values(): self.modular_packages.update(mmd.get_rpm_artifacts().dup()) - for mmd in var.dev_mmds.get(self.arch, {}).values(): - self.modular_packages.update(mmd.get_rpm_artifacts().dup()) def prepare_langpacks(self, arch, variant): if not self.compose.has_comps: @@ -456,9 +453,7 @@ def create_module_repo(compose, variant, arch): # We need to include metadata for all variants. The packages are in the # set, so we need their metadata. for var in compose.all_variants.values(): - for mmd in chain( - var.arch_mmds.get(arch, {}).values(), var.dev_mmds.get(arch, {}).values() - ): + for mmd in var.arch_mmds.get(arch, {}).values(): # Set the arch field, but no other changes are needed. repo_mmd = mmd.copy() repo_mmd.set_arch(tree_arch_to_yum_arch(arch)) diff --git a/pungi/wrappers/variants.py b/pungi/wrappers/variants.py index d0447e06..5689d346 100755 --- a/pungi/wrappers/variants.py +++ b/pungi/wrappers/variants.py @@ -266,7 +266,6 @@ class Variant(object): self.pkgset = None self.mmds = [] self.arch_mmds = {} - self.dev_mmds = {} self.module_uid_to_koji_tag = {} self.nsvc_to_pkgset = {} diff --git a/tests/helpers.py b/tests/helpers.py index 4c2e24f1..134c2570 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -62,7 +62,6 @@ class MockVariant(mock.Mock): self.parent = kwargs.get('parent', None) self.mmds = [] self.arch_mmds = {} - self.dev_mmds = {} self.module_uid_to_koji_tag = {} self.variants = {} self.pkgset = mock.Mock(rpms_by_arch={})