Skip to content

Commit 4d74d90

Browse files
committed
_GitCommitPkg: fix no attribute live or slot
Resolves: #380 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 0883521 commit 4d74d90

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/pkgcheck/addons/git.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ def _pkg_changes(self, commit_hash, commit_time):
264264
class _GitCommitPkg(cpv.VersionedCPV):
265265
"""Fake packages encapsulating commits parsed from git log."""
266266

267+
__slots__ = ("commit", "old", "status", "time")
268+
269+
# set multiple defaults for the fake package
270+
live = False
271+
slot = "0"
272+
267273
def __init__(self, category, package, status, version, time, commit, old=None):
268274
super().__init__(category, package, version)
269275

0 commit comments

Comments
 (0)