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 8F10E15800F for ; Fri, 17 Feb 2023 01:23:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64706E0858; Fri, 17 Feb 2023 01:23:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 4CA66E0858 for ; Fri, 17 Feb 2023 01:23:29 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 416A734114C for ; Fri, 17 Feb 2023 01:23:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 065448B3 for ; Fri, 17 Feb 2023 01:23:26 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1676596994.8bda7308b3f481ea05f0b0c671dfec4024384dfa.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: lib/_emerge/BinpkgFetcher.py X-VCS-Directories: lib/_emerge/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8bda7308b3f481ea05f0b0c671dfec4024384dfa X-VCS-Branch: master Date: Fri, 17 Feb 2023 01:23:26 +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: 2b621598-3137-4f0d-b649-b3d8351a86d7 X-Archives-Hash: 0619c3e6893ff7898e0c3f6436ecd826 commit: 8bda7308b3f481ea05f0b0c671dfec4024384dfa Author: Sheng Yu protonmail com> AuthorDate: Sat Feb 11 03:10:23 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Feb 17 01:23:14 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8bda7308 Add warning if missing PATH in binpkg index Outdated portage does not have this metadata by default. Bug: https://bugs.gentoo.org/884869 Signed-off-by: Sheng Yu protonmail.com> Signed-off-by: Sam James gentoo.org> lib/_emerge/BinpkgFetcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/_emerge/BinpkgFetcher.py b/lib/_emerge/BinpkgFetcher.py index df99486a0..a18bed759 100644 --- a/lib/_emerge/BinpkgFetcher.py +++ b/lib/_emerge/BinpkgFetcher.py @@ -28,6 +28,10 @@ class BinpkgFetcher(CompositeTask): instance_key = bintree.dbapi._instance_key(pkg.cpv) binpkg_path = bintree._remotepkgs[instance_key].get("PATH") + if not binpkg_path: + raise FileNotFound( + f"PATH not found in the binpkg index, the binhost's portage is probably out of date." + ) binpkg_format = get_binpkg_format(binpkg_path) self.pkg_allocated_path = pkg.root_config.trees["bintree"].getname(