Skip to content

Commit 0883521

Browse files
committed
RdependChange: skip when revbumped in same batch
Resolves: #459 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 7d50c22 commit 0883521

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pkgcheck/checks/git.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def rename_checks(self, pkgs):
340340
else:
341341
yield MissingMove(old_key, new_key, pkg=pkg)
342342

343-
def modified_checks(self, pkgs):
343+
def modified_checks(self, pkgs, added):
344344
"""Check for issues due to package modifications."""
345345
pkg = pkgs[0]
346346

@@ -361,7 +361,7 @@ def modified_checks(self, pkgs):
361361
# ignore broken ebuild
362362
return
363363

364-
if old_pkg.rdepend != new_pkg.rdepend:
364+
if pkg not in added and old_pkg.rdepend != new_pkg.rdepend:
365365
yield RdependChange(pkg=new_pkg)
366366

367367
old_slot, new_slot = old_pkg.slot, new_pkg.slot
@@ -437,7 +437,7 @@ def feed(self, pkgset: list[git.GitPkgChange]):
437437
yield from self.rename_checks(list(pkg_map["R"]))
438438
# run modified package checks
439439
if modified := [pkg for pkg in pkg_map["M"] if pkg not in pkg_map["D"]]:
440-
yield from self.modified_checks(modified)
440+
yield from self.modified_checks(modified, list(pkg_map["A"]))
441441

442442
for git_pkg in pkgset:
443443
# remaining checks are irrelevant for removed packages

0 commit comments

Comments
 (0)