Skip to content

Commit 371630c

Browse files
committed
AcctCheck: restrict to the gentoo repo
Fixes #327.
1 parent 796ac9e commit 371630c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pkgcheck/checks/acct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pkgcore.restrictions import packages
1010

1111
from .. import results, sources
12-
from . import RepoCheck
12+
from . import GentooRepoCheck, RepoCheck
1313

1414

1515
class MissingAccountIdentifier(results.VersionResult, results.Warning):
@@ -55,7 +55,7 @@ def desc(self):
5555
f"static allocation range (0..499, 60001+)")
5656

5757

58-
class AcctCheck(RepoCheck):
58+
class AcctCheck(GentooRepoCheck, RepoCheck):
5959
"""Various checks for acct-* packages.
6060
6161
Verify that acct-* packages do not use conflicting, invalid or out-of-range

tests/checks/test_acct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TestAcctUser(misc.ReportTestCase):
1313

1414
def mk_check(self, pkgs):
1515
self.repo = FakeRepo(pkgs=pkgs, repo_id='test')
16-
check = self.check_kls(arghparse.Namespace(target_repo=self.repo))
16+
check = self.check_kls(arghparse.Namespace(target_repo=self.repo, gentoo_repo=True))
1717
return check
1818

1919
def mk_pkg(self, name, identifier, version=1, ebuild=None):

0 commit comments

Comments
 (0)