commit: 94a1af3c65f8cecd05feabe1c25ac94d27c8db1c Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 11 07:17:00 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sat Mar 11 07:17:00 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=94a1af3c
SrcUriChecksumChange: fix false positive with new ebuilds When ebuilds are added and being modified in the same commit range, they might result in thinking there is old checksum for the file, when in fact it is empty dict. Resolves: https://github.com/pkgcore/pkgcheck/issues/553 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcheck/checks/git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkgcheck/checks/git.py b/src/pkgcheck/checks/git.py index aec3b05f..c7785729 100644 --- a/src/pkgcheck/checks/git.py +++ b/src/pkgcheck/checks/git.py @@ -444,6 +444,7 @@ class GitPkgCommitsCheck(GentooRepoCheck, GitCommitsCheck): ), fetchable, ) + if fetch.chksums } old_checksums = { @@ -457,6 +458,7 @@ class GitPkgCommitsCheck(GentooRepoCheck, GitCommitsCheck): ), fetchable, ) + if fetch.chksums } except (IndexError, FileNotFoundError, tarfile.ReadError): # ignore broken ebuild
