Fix a bug in write_control: we use lists and not dictionaries for storing

source packages in memory.
master
Fabio Tranchitella 16 years ago
parent 13a0f4d654
commit 633eb5301f

@ -833,9 +833,8 @@ class Britney:
f = open(filename, 'w')
for src in sources:
output = "Package: %s\n" % src
for k in ('Version', 'Section', 'Maintainer'):
key = k.lower()
if key not in sources[src] or not sources[src][key]: continue
for key, k in ((VERSION, 'Version'), (SECTION, 'Section'), (MAINTAINER, 'Maintainer')):
if not sources[src][key]: continue
output += (k + ": " + sources[src][key] + "\n")
f.write(output + "\n")
f.close()

Loading…
Cancel
Save