Skip to content

Commit c8c1d3a

Browse files
committed
BadPackageUpdate: fix when ran as only check
Fixes: be92740 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent be92740 commit c8c1d3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pkgcheck/checks/repo_metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def finish(self):
105105
base.LogMap("pkgcore.log.logger.error", BadPackageUpdate),
106106
)
107107

108-
del self.repo.config.__dict__["_updates"] # clear cache for immutable dict
108+
if hasattr(self.repo.config, "_updates"):
109+
del self.repo.config.__dict__["_updates"] # clear cache for immutable dict
109110
# convert log warnings/errors into reports
110111
with base.LogReports(*logmap) as log_reports:
111112
repo_updates = self.repo.config.updates

0 commit comments

Comments
 (0)