Ansgar Burchardt pushed to branch deploy at Debian FTP Team / dak
Commits:
-
a980e832
by Ansgar Burchardt at 2018-05-29T22:49:25+02:00
-
ae426db5
by Ansgar Burchardt at 2018-05-29T22:50:14+02:00
1 changed file:
Changes:
... | ... | @@ -1291,13 +1291,14 @@ class ArchiveUpload(object): |
1291 | 1291 |
versions.close()
|
1292 | 1292 |
|
1293 | 1293 |
# binary -> source mapping
|
1294 |
- debinfo = fs.create("{0}.debinfo".format(base), mode=0o644)
|
|
1295 |
- for binary in self.changes.binaries:
|
|
1296 |
- control = binary.control
|
|
1297 |
- source_package, source_version = binary.source
|
|
1298 |
- line = " ".join([control['Package'], control['Version'], control['Architecture'], source_package, source_version])
|
|
1299 |
- print >>debinfo, line
|
|
1300 |
- debinfo.close()
|
|
1294 |
+ if self.changes.binaries:
|
|
1295 |
+ debinfo = fs.create("{0}.debinfo".format(base), mode=0o644)
|
|
1296 |
+ for binary in self.changes.binaries:
|
|
1297 |
+ control = binary.control
|
|
1298 |
+ source_package, source_version = binary.source
|
|
1299 |
+ line = " ".join([control['Package'], control['Version'], control['Architecture'], source_package, source_version])
|
|
1300 |
+ print >>debinfo, line
|
|
1301 |
+ debinfo.close()
|
|
1301 | 1302 |
|
1302 | 1303 |
def _policy_queue(self, suite):
|
1303 | 1304 |
if suite.policy_queue is not None:
|