Ubuntu Pastebin

Paste from cjwatson at Tue, 13 Jun 2017 11:47:53 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
=== modified file 'lib/lp/soyuz/model/queue.py'
--- lib/lp/soyuz/model/queue.py	2016-05-26 14:53:06 +0000
+++ lib/lp/soyuz/model/queue.py	2017-06-13 11:45:50 +0000
@@ -305,6 +305,12 @@ class PackageUpload(SQLBase):
             except NotFoundError:
                 pass
 
+        for build in self.builds:
+            try:
+                return build.getFileByName(filename)
+            except NotFoundError:
+                pass
+
         custom = Store.of(self).find(
             PackageUploadCustom,
             PackageUploadCustom.packageupload == self.id,
Download as text