Ubuntu Pastebin

Paste from martin at Wed, 12 Oct 2016 07:36:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/germinate/germinator.py b/germinate/germinator.py
index a86c25d..57b33bf 100644
--- a/germinate/germinator.py
+++ b/germinate/germinator.py
@@ -1570,7 +1570,7 @@ class Germinator(object):
         #     [[('pkg', '1', '=')]]
         # We thus unpack the first listed alternative pkg-name, for
         # each built-using source.
-        built_using = [i[0][0] for i in self._packages[pkg]["Built-Using"]]
+        built_using = [i[0][0] for i in self._packages[pkg].get("Built-Using", [])]
         pkg_srcs = []
 
         if second_class:
Download as text