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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9523B15838C for ; Fri, 19 Jan 2024 06:15:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9B8BE2AEA; Fri, 19 Jan 2024 06:15:17 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD2BAE2AEA for ; Fri, 19 Jan 2024 06:15:17 +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 F396D3432BF for ; Fri, 19 Jan 2024 06:15:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A923137E for ; Fri, 19 Jan 2024 06:15:15 +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: <1705644912.c584d83705a2ca08961e4f0b541442fdf9a75947.sam@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eclean/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/eclean/search.py X-VCS-Directories: pym/gentoolkit/eclean/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c584d83705a2ca08961e4f0b541442fdf9a75947 X-VCS-Branch: master Date: Fri, 19 Jan 2024 06:15:15 +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: c9b37e57-e9b1-49d2-b449-4f9fe326db8e X-Archives-Hash: 5f73e9f419c45800b34f313938e2c4ff commit: c584d83705a2ca08961e4f0b541442fdf9a75947 Author: Sam James gentoo org> AuthorDate: Fri Jan 19 06:14:43 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 19 06:15:12 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=c584d837 eclean: fix eclean-dist with no git3-src dir Bug: https://bugs.gentoo.org/922455 Signed-off-by: Sam James gentoo.org> pym/gentoolkit/eclean/search.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py index f03c521..3610920 100644 --- a/pym/gentoolkit/eclean/search.py +++ b/pym/gentoolkit/eclean/search.py @@ -339,6 +339,9 @@ class DistfilesSearch: """Checks $DISTDIR/vcs-src for checkouts which are not in the vardb""" # For now we only check git vcs_src = os.path.join(distdir, "git3-src") + if not os.path.exists(vcs_src): + return {} + expected_dirs = set() for i in set(self.vardb.cpv_all()): if "live" in self.vardb.aux_get(i, ["PROPERTIES"]):