diff --git a/pungi/phases/pkgset/pkgsets.py b/pungi/phases/pkgset/pkgsets.py index 5ebcd90a..700b7b28 100644 --- a/pungi/phases/pkgset/pkgsets.py +++ b/pungi/phases/pkgset/pkgsets.py @@ -165,7 +165,7 @@ class PackageSetBase(kobo.log.LoggingBase): sourcerpm_name = kobo.rpmlib.parse_nvra(i.sourcerpm)["name"] seen_sourcerpms.add(sourcerpm_name) - self.file_cache[i.file_path] = i + self.file_cache.file_cache[i.file_path] = i self.rpms_by_arch[arch].append(i) self.log_debug("[DONE ] %s" % msg) diff --git a/tests/test_pkgset_pkgsets.py b/tests/test_pkgset_pkgsets.py index 3a1d6288..6d6f88f6 100755 --- a/tests/test_pkgset_pkgsets.py +++ b/tests/test_pkgset_pkgsets.py @@ -70,6 +70,7 @@ class MockFileCache(dict): """ def __init__(self, _wrapper): super(MockFileCache, self).__init__() + self.file_cache = self def add(self, file_path): obj = MockFile(file_path)