From 49500104ae9f11d14fb7e6466e23d1675d9c00f3 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 6 Jul 2015 15:02:21 +0200 Subject: [PATCH] AutoPkgTest.tests_for_source(): Don't trip over NBS binaries --- autopkgtest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autopkgtest.py b/autopkgtest.py index 2a6cc2f..b817aa9 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -96,7 +96,12 @@ class AutoPackageTest(object): # an autopkgtest for binary in srcinfo[BINARIES]: binary = binary.split('/')[0] # chop off arch - for rdep in binaries_info[binary][RDEPENDS]: + try: + rdeps = binaries_info[binary][RDEPENDS] + except KeyError: + self.log_verbose('Ignoring nonexistant binary %s (FTBFS/NBS)?' % binary) + continue + for rdep in rdeps: rdep_src = binaries_info[rdep][SOURCE] if sources_info[rdep_src][AUTOPKGTEST]: # we don't care about the version of rdep