]> git.decadent.org.uk Git - dak.git/commitdiff
dak/generate_releases.py: don't include "updates/" twice
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 7 May 2013 07:24:41 +0000 (09:24 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 7 May 2013 07:26:47 +0000 (09:26 +0200)
On the security archive "updates" is both suite suffix and part of the
component name. It should only be included once in the Components field.

Bug: http://bugs.debian.org/702386

dak/generate_releases.py

index a849f36db0477323d4f7f524aecd252b6dbd0215..6a1bf84e2dee455f163c6be24ab6738c72d4fa52 100755 (executable)
@@ -178,7 +178,7 @@ class ReleaseWriter(object):
 
         components = [ c.component_name for c in session.query(Component) ]
 
-        out.write("Components: %s\n" % ( " ".join(map(lambda x: "%s%s" % (suite_suffix, x), components ))))
+        out.write("Components: %s\n" % (" ".join(components)))
 
         # For exact compatibility with old g-r, write out Description here instead
         # of with the rest of the DB fields above