[pkgset] Fix caching RPMs
The test mock did not actually match what is provided by Kobo. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
9f3408fec0
commit
d4effc1610
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user