Skip to content

Commit

Permalink
_GitCommitPkg: fix no attribute live or slot
Browse files Browse the repository at this point in the history
Resolves: pkgcore#380
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
  • Loading branch information
arthurzam committed Jan 24, 2023
1 parent 0883521 commit 4d74d90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pkgcheck/addons/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ def _pkg_changes(self, commit_hash, commit_time):
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)

Expand Down

0 comments on commit 4d74d90

Please sign in to comment.