Cover the case where no builds are found in this dist-tag
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
7ba8489b72
commit
fd7cb9c9e5
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ def main(args):
|
|||
if build.startswith(nv):
|
||||
n_builds += 1
|
||||
|
||||
if not last_build:
|
||||
print("No build found")
|
||||
return
|
||||
|
||||
print(f"Last build: {last_build}")
|
||||
last_build = last_build.rsplit(f".{args.dist}", 1)[0]
|
||||
rel = last_build.rsplit("-", 1)[-1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue