From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 25E9815802F for ; Sat, 11 Mar 2023 07:18:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62032E079E; Sat, 11 Mar 2023 07:18:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3FAF7E079E for ; Sat, 11 Mar 2023 07:18:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5EFC4340CC3 for ; Sat, 11 Mar 2023 07:18:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E396F8BC for ; Sat, 11 Mar 2023 07:18:33 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1678519020.94a1af3c65f8cecd05feabe1c25ac94d27c8db1c.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: src/pkgcheck/checks/ X-VCS-Repository: proj/pkgcore/pkgcheck X-VCS-Files: src/pkgcheck/checks/git.py X-VCS-Directories: src/pkgcheck/checks/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 94a1af3c65f8cecd05feabe1c25ac94d27c8db1c X-VCS-Branch: master Date: Sat, 11 Mar 2023 07:18:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 371899c5-3511-4879-84ea-0cc9c712bf16 X-Archives-Hash: c3cf8e0b99518364c1ac911efb525f61 commit: 94a1af3c65f8cecd05feabe1c25ac94d27c8db1c Author: Arthur Zamarin gentoo org> AuthorDate: Sat Mar 11 07:17:00 2023 +0000 Commit: Arthur Zamarin gentoo 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 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