diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-04 07:56:56 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-04 07:56:56 +0200 |
commit | 861c24ab76bfc36de2ca80a8375866e4123dc51a (patch) | |
tree | f33248a48a304512c036ed025f2129d271e94180 /tests | |
parent | EbuildReservedCheck: check for semi-reserved names (diff) | |
download | pkgcheck-861c24ab76bfc36de2ca80a8375866e4123dc51a.tar.gz pkgcheck-861c24ab76bfc36de2ca80a8375866e4123dc51a.tar.bz2 pkgcheck-861c24ab76bfc36de2ca80a8375866e4123dc51a.zip |
StableRequestCheck: ignore version not keyworded for arches
packages that are not keyworded for relevant arches but keyworded to
another arch, were not ignored by the check. This patch fixes that.
Resolves: https://github.com/pkgcore/pkgcheck/issues/544
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checks/test_stablereq.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/checks/test_stablereq.py b/tests/checks/test_stablereq.py index 43f4380b..efb94b7a 100644 --- a/tests/checks/test_stablereq.py +++ b/tests/checks/test_stablereq.py @@ -118,6 +118,15 @@ class TestStableRequestCheck(ReportTestCase): expected = StableRequest("1", ["~amd64"], 30, pkg=VersionedCPV("cat/pkg-2")) assert r == expected + def test_unkeyworded_new_pkg(self): + self.parent_repo.create_ebuild("cat/pkg-1", keywords=["amd64"]) + self.parent_git_repo.add_all("cat/pkg-1") + self.parent_repo.create_ebuild("cat/pkg-2", keywords=["~x86"]) + self.parent_git_repo.add_all("cat/pkg-2") + self.child_git_repo.run(["git", "pull", "origin", "main"]) + self.init_check(future=30) + self.assertNoReport(self.check, self.source) + def test_moved_category(self): self.parent_repo.create_ebuild("cat/pkg-1", keywords=["amd64"]) self.parent_git_repo.add_all("cat/pkg-1") |