Return at least one tarball when there are multiple.

This commit is contained in:
Jelmer Vernooij 2021-04-05 21:26:22 +01:00
parent 3daeee51b5
commit d282a125b8
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8

View file

@ -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]