From d282a125b82fa77b147da51c3b1bc379270dad93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 5 Apr 2021 21:26:22 +0100 Subject: [PATCH] Return at least one tarball when there are multiple. --- ognibuild/dist_catcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ognibuild/dist_catcher.py b/ognibuild/dist_catcher.py index 2739773..b2546a1 100644 --- a/ognibuild/dist_catcher.py +++ b/ognibuild/dist_catcher.py @@ -94,7 +94,8 @@ class DistCatcher(object): logging.warning( "Found multiple tarballs %r in %s.", possible_new, directory ) - return + self.files.extend([entry.path for entry in possible_new]) + return possible_new[0].name if len(possible_updated) == 1: entry = possible_updated[0]