[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:
Lubomír Sedlář 2016-04-28 09:05:03 +02:00
parent 9f3408fec0
commit d4effc1610
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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)