From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1627349-garchives=archives.gentoo.org@lists.gentoo.org>
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 1E072158064
	for <garchives@archives.gentoo.org>; Fri,  3 May 2024 05:11:26 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5959DE2A41;
	Fri,  3 May 2024 05:11:25 +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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3C0F7E2A41
	for <gentoo-commits@lists.gentoo.org>; Fri,  3 May 2024 05:11:25 +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 64AAE343053
	for <gentoo-commits@lists.gentoo.org>; Fri,  3 May 2024 05:11:24 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id BA0B793E
	for <gentoo-commits@lists.gentoo.org>; Fri,  3 May 2024 05:11:22 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1714713041.7405fdccd73364662089f1001231bf8c24916ca3.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: 7405fdccd73364662089f1001231bf8c24916ca3
X-VCS-Branch: master
Date: Fri,  3 May 2024 05:11:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 61e30b09-e588-4183-8cd8-e3614f6517bb
X-Archives-Hash: 33efc511533d56a0e67980e8d2ac3c70

commit:     7405fdccd73364662089f1001231bf8c24916ca3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May  3 05:10:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May  3 05:10:41 2024 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=7405fdcc

eclean: dist: fix operating on an empty directory

Zac pointed out that not all return paths had been updated.

Bug: https://bugs.gentoo.org/928138
Fixes: 87912b460c533f8b010617018fdad42246db85f0
Signed-off-by: Sam James <sam <AT> gentoo.org>

 pym/gentoolkit/eclean/search.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py
index b696b63..7f050ee 100644
--- a/pym/gentoolkit/eclean/search.py
+++ b/pym/gentoolkit/eclean/search.py
@@ -115,10 +115,11 @@ class DistfilesSearch:
         pkgs = {}
         saved = {}
         deprecated = {}
+        vcs = {}
         installed_included = False
         # Check if DISTDIR is empty, return early
         if not os.listdir(_distdir):
-            return clean_me, saved, deprecated
+            return clean_me, saved, deprecated, vcs
 
         # create a big CPV->SRC_URI dict of packages
         # whose distfiles should be kept