Skip to content

Commit 0e22d6f

Browse files
doctaweeksarthurzam
authored andcommitted
Use REPO profile base for profile caching
Prior to this change, scanning an overlay would always cause a profile cache update since nothing repo-specific was actually getting updated. Signed-off-by: Daniel M. Weeks <dan@danweeks.net> Closes: #528 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 191300b commit 0e22d6f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/pkgcheck/addons/profiles.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ def update_cache(self, force=False):
267267
for profile_obj, profile in self.arch_profiles.get(arch, []):
268268
files = self.profile_data.get(profile)
269269
try:
270-
cached_profile = cached_profiles[profile.base][profile.path]
270+
cached_profile = cached_profiles[repo.config.profiles_base][
271+
profile.path
272+
]
271273
if files != cached_profile["files"]:
272274
# force refresh of outdated cache entry
273275
raise KeyError
@@ -329,8 +331,8 @@ def update_cache(self, force=False):
329331
# unsupported EAPI or other issue, profile checks will catch this
330332
continue
331333

332-
cached_profiles[profile.base]["update"] = True
333-
cached_profiles[profile.base][profile.path] = {
334+
cached_profiles[repo.config.profiles_base]["update"] = True
335+
cached_profiles[repo.config.profiles_base][profile.path] = {
334336
"files": files,
335337
"masks": masks,
336338
"unmasks": unmasks,

0 commit comments

Comments
 (0)