]> git.decadent.org.uk Git - dak.git/commitdiff
* ziyi: quick hack to support a FakeDI line in apt.conf to generatechecksums for...
authorAnthony Towns <aj@azure.humbug.org.au>
Tue, 15 Jul 2003 09:43:18 +0000 (09:43 +0000)
committerAnthony Towns <aj@azure.humbug.org.au>
Tue, 15 Jul 2003 09:43:18 +0000 (09:43 +0000)
apt.conf
ziyi

index 9f722ae35e8c5fc20aab74f28379b94ee2077caf..859ea6cb52207857a683e8550fd8cfec9971b2e4 100644 (file)
--- a/apt.conf
+++ b/apt.conf
@@ -34,6 +34,7 @@ tree "dists/proposed-updates"
 
 tree "dists/testing"
 {
+   FakeDI "dists/unstable";
    FileList "/org/ftp.debian.org/database/dists/testing_$(SECTION)_binary-$(ARCH).list";
    SourceFileList "/org/ftp.debian.org/database/dists/testing_$(SECTION)_source.list";
    Sections "main contrib non-free";
diff --git a/ziyi b/ziyi
index d6b3782debd51f499d407565f0f5bc7b6f326014..102101908ceea79f9356f9b90b3f45e0472107ca 100755 (executable)
--- a/ziyi
+++ b/ziyi
@@ -3,7 +3,7 @@
 # Create all the Release files
 
 # Copyright (C) 2001, 2002  Anthony Towns <ajt@debian.org>
-# $Id: ziyi,v 1.25 2003-01-02 18:14:28 troup Exp $
+# $Id: ziyi,v 1.26 2003-07-15 09:43:18 ajt Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -253,6 +253,16 @@ def main ():
                    if arch != "source":  # always true
                        for file in compressnames("tree::%s/main" % (tree), "Packages", "main/%s/binary-%s/Packages" % (sec, arch)):
                            files.append(file)
+           elif AptCnf.has_key("tree::%s::FakeDI" % (tree)):
+               usetree = AptCnf["tree::%s::FakeDI" % (tree)]
+               sec = AptCnf["tree::%s/main::Sections" % (usetree)].split()[0]
+               if sec != "debian-installer":
+                   print "ALERT: weird non debian-installer section in %s" % (usetree)
+               for arch in AptCnf["tree::%s/main::Architectures" % (usetree)].split():
+                   if arch != "source":  # always true
+                       for file in compressnames("tree::%s/main" % (usetree), "Packages", "main/%s/binary-%s/Packages" % (sec, arch)):
+                           files.append(file)
 
        elif AptCnf.has_key("bindirectory::%s" % (tree)):
            for file in compressnames("bindirectory::%s" % (tree), "Packages", AptCnf["bindirectory::%s::Packages" % (tree)]):