]> err.no Git - dak/commitdiff
temporary hack to fix squeeze-updates / stable-updates suite name
authorMark Hymers <mhy@debian.org>
Fri, 1 Apr 2011 11:06:20 +0000 (11:06 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 1 Apr 2011 11:06:20 +0000 (11:06 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/generate_releases.py

index 7f5a9963fc83e27d729a74190c4367a24c4a3d43..91d870722ec092f1241dbbc53254ce7632f8a89d 100755 (executable)
@@ -158,7 +158,11 @@ class ReleaseWriter(object):
 
         for key, dbfield in attribs:
             if getattr(suite, dbfield) is not None:
-                out.write("%s: %s\n" % (key, getattr(suite, dbfield)))
+                # TEMPORARY HACK HACK HACK until we change the way we store the suite names etc
+                if key == 'Suite' and getattr(suite, dbfield) == 'squeeze-updates':
+                    out.write("Suite: stable-updates\n"
+                else:
+                    out.write("%s: %s\n" % (key, getattr(suite, dbfield)))
 
         out.write("Date: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()))))