From 6524ef6c62d5148ffedb12bb82260c82a950b238 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Fri, 8 Mar 2019 19:19:49 -0600 Subject: [PATCH] Work around special case. --- ci/lp_check.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/lp_check.py b/ci/lp_check.py index b5c7b97..33ae88a 100755 --- a/ci/lp_check.py +++ b/ci/lp_check.py @@ -97,6 +97,13 @@ class LaunchpadCheck: print(binary.arch_tag, "successfully built.") else: raise ValueError("One or more builds have an error") + + # Before we verify binaries, we have to be able to read the + # records. There's a window we can encounter where the + # source is published but it has no record of any binaries, + # even before the binaries are actually processed + if len(ppa.getPublishedBinaries()) < 1: + raise IndexError # Make sure all of the binaries are in a good state if they've # passed for binary in ppa.getPublishedBinaries():