commit: 4d74d90aa601b5caab445a9dd88c649c0b02856f Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 24 19:21:25 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Jan 24 19:21:25 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=4d74d90a
_GitCommitPkg: fix no attribute live or slot Resolves: https://github.com/pkgcore/pkgcheck/issues/380 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcheck/addons/git.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pkgcheck/addons/git.py b/src/pkgcheck/addons/git.py index 9fd016ce..2547bcc5 100644 --- a/src/pkgcheck/addons/git.py +++ b/src/pkgcheck/addons/git.py @@ -264,6 +264,12 @@ class GitRepoPkgs(_ParseGitRepo): class _GitCommitPkg(cpv.VersionedCPV): """Fake packages encapsulating commits parsed from git log.""" + __slots__ = ("commit", "old", "status", "time") + + # set multiple defaults for the fake package + live = False + slot = "0" + def __init__(self, category, package, status, version, time, commit, old=None): super().__init__(category, package, version)