From: Anthony Towns Date: Tue, 15 Jul 2003 09:43:18 +0000 (+0000) Subject: * ziyi: quick hack to support a FakeDI line in apt.conf to generatechecksums for... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=19a754e62761156ccc938201c59c68d8cabf3c5b;p=dak.git * ziyi: quick hack to support a FakeDI line in apt.conf to generatechecksums for debian-installer stuff even when it's just a symlink toanother suite* apt.conf: add the FakeDI line --- diff --git a/apt.conf b/apt.conf index 9f722ae3..859ea6cb 100644 --- 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 d6b3782d..10210190 100755 --- a/ziyi +++ b/ziyi @@ -3,7 +3,7 @@ # Create all the Release files # Copyright (C) 2001, 2002 Anthony Towns -# $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)]):