X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=jenna;h=a88718e07aaa009ba64d9e4a87cf495289e6e47c;hb=8e9a5d533c8458eaca33266208f6c347d66dfeef;hp=73fdf0cfd437e63a1ac82d354bd9485023b09c3e;hpb=2f5e692bfbbb6f8146f50d944f7fcc169a95a0a3;p=dak.git diff --git a/jenna b/jenna index 73fdf0cf..a88718e0 100755 --- a/jenna +++ b/jenna @@ -1,8 +1,8 @@ #!/usr/bin/env python # Generate file list which is then fed to apt-ftparchive to generate Packages and Sources files -# Copyright (C) 2000, 2001 James Troup -# $Id: jenna,v 1.15 2001-11-18 19:57:58 rmurray Exp $ +# Copyright (C) 2000, 2001, 2002 James Troup +# $Id: jenna,v 1.17 2002-05-14 15:34:02 troup 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 @@ -252,29 +252,29 @@ def main(): if not Cnf.has_key("Suite::%s::Components" % (suite)): components = "-"; if components == "": - components = string.join(Cnf.SubTree("Suite::%s::Components" % (suite)).List()); + components = string.join(Cnf.ValueList("Suite::%s::Components" % (suite))); for component in string.split(components): component = string.lower(component) architectures = Options["Architecture"]; if architectures == "": - architectures = string.join(Cnf.SubTree("Suite::%s::Architectures" % (suite)).List()); + architectures = string.join(Cnf.ValueList("Suite::%s::Architectures" % (suite))); for architecture in string.split(architectures): architecture = string.lower(architecture) if architecture == "all": continue if architecture == "source": Logger.log(["Processing dists/%s/%s/%s..." % (suite, component, architecture)]); - output = utils.open_file("%s/%s_%s_%s.list" % (Cnf["Dir::ListsDir"], suite, component, architecture), "w") + output = utils.open_file("%s/%s_%s_%s.list" % (Cnf["Dir::Lists"], suite, component, architecture), "w") generate_src_list(suite, component, output, dislocated_files); output.close(); else: Logger.log(["Processing dists/%s/%s/binary-%s..." % (suite, component, architecture)]); - output = utils.open_file("%s/%s_%s_binary-%s.list" % (Cnf["Dir::ListsDir"], suite, component, architecture), "w"); + output = utils.open_file("%s/%s_%s_binary-%s.list" % (Cnf["Dir::Lists"], suite, component, architecture), "w"); generate_bin_list(suite, component, architecture, output, "deb", dislocated_files); output.close(); if component == "main" and (suite == "unstable" or suite == "testing") and Cnf.has_key("Section::debian-installer"): # FIXME: must be a cleaner way to say debian-installer is main only? Logger.log(["Processing dists/%s/%s/debian-installer/binary-%s..." % (suite,component, architecture)]); - output = utils.open_file("%s/%s_%s_debian-installer_binary-%s.list" % (Cnf["Dir::ListsDir"], suite, component, architecture), "w"); + output = utils.open_file("%s/%s_%s_debian-installer_binary-%s.list" % (Cnf["Dir::Lists"], suite, component, architecture), "w"); generate_bin_list(suite, component, architecture, output, "udeb", dislocated_files); output.close(); Logger.close();