#!/usr/bin/env python
# Generate file lists used by apt-ftparchive to generate Packages and Sources files
-# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: jenna,v 1.21 2002-10-16 02:47:32 troup Exp $
+# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
+# $Id: jenna,v 1.27 2004-02-27 20:07:40 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
-n, --no-delete don't delete older versions
-s, --suite=SUITE only write file lists for this suite
-ARCH, COMPONENT and SUITE can be space seperated lists, e.g.
+ARCH, COMPONENT and SUITE can be space separated lists, e.g.
--architecture=\"m68k i386\"""";
sys.exit(exit_code);
unique_id = i[1];
arch = packages[unique_id]["arch"];
if arch == "all":
- arch_all_versions = i;
+ arch_all_versions = [i];
arch_all_version = i[0];
arch_any_versions.remove(i);
# Sort arch: any versions into descending order
# Remove all but the highest
delete_packages(dominated_versions, pkg, arch, suite,
dominant_version, delete_table, delete_col, packages);
- return dominant_versions;
+ return [dominant_versions];
################################################################################
for arch in arches.keys():
if arch != "source":
versions.extend(d[suite][pkg][arch]);
- remove_duplicate_versions(versions, packages);
+ resolve_arch_all_vs_any(versions, packages);
################################################################################
if not Options["Component"]:
components = Cnf.ValueList("Suite::%s::Components" % (suite));
else:
- components = Options["Components"].split();
+ components = Options["Component"].split();
udeb_components = Cnf.ValueList("Suite::%s::UdebComponents" % (suite));
udeb_components = udeb_components;
for component in components:
return 1;
# Otherwise, look in what suites the user specified
suites = Options["Suite"].split();
- return suites.count("stable");
+
+ if "stable" in suites:
+ return 1;
+ else:
+ return 0;
################################################################################