From 633eb5301f889e974d06ab623b4af10d5969dc0d Mon Sep 17 00:00:00 2001 From: Fabio Tranchitella Date: Wed, 28 May 2008 11:13:56 +0000 Subject: [PATCH] Fix a bug in write_control: we use lists and not dictionaries for storing source packages in memory. --- britney.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/britney.py b/britney.py index 7a14f2b..c40bde0 100644 --- a/britney.py +++ b/britney.py @@ -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()