]> git.decadent.org.uk Git - dak.git/commitdiff
generate_releases
authorJoerg Jaspert <joerg@debian.org>
Mon, 7 Sep 2009 06:18:31 +0000 (08:18 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 7 Sep 2009 06:18:31 +0000 (08:18 +0200)
now also include the Contents-$arch.diff/Index files into the release
file, so tools who use them to mirror Debian (brrrr)  can also mirror those.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/generate_releases.py

index 4a5c2abf6af9b28fa2082f7aac445d3f30f0feb0..8bf3622d80ee06cf1545b037f898107bd9096453 100755 (executable)
@@ -285,7 +285,10 @@ def main ():
             else:
                 for x in os.listdir("%s/%s" % (Cnf["Dir::Root"], tree)):
                     if x.startswith('Contents-'):
-                        files.append(x)
+                        if x.endswith('.diff'):
+                            files.append("%s/Index" % (x))
+                        else:
+                            files.append(x)
 
             for sec in AptCnf["tree::%s::Sections" % (tree)].split():
                 for arch in AptCnf["tree::%s::Architectures" % (tree)].split():