handle binary-only promotions when writing delta

bzr-import-20160707
Colin Watson 12 years ago
parent c15542af29
commit 2034272f1c

@ -938,11 +938,20 @@ class Britney(object):
f = open(filename, "w") f = open(filename, "w")
sources = self.sources['testing'] sources = self.sources['testing']
for src_name in self.all_selected: binaries = self.binaries['testing']
if src_name in sources: for name in self.all_selected:
f.write('%s %s\n' % (src_name, sources[src_name][VERSION])) if "/" in name:
pkg_name, arch = name.split('/', 1)
if arch in binaries and pkg_name in binaries[arch][0]:
f.write('%s %s\n' %
(name, binaries[arch][0][pkg_name][VERSION]))
else:
f.write('%s\n' % name)
else:
if name in sources:
f.write('%s %s\n' % (name, sources[name][VERSION]))
else: else:
f.write('%s\n' % src_name) f.write('%s\n' % name)
f.close() f.close()

Loading…
Cancel
Save