#!/usr/bin/env python
# Generate file lists used by apt-ftparchive to generate Packages and Sources files
-# Copyright (C) 2000, 2001, 2002, 2003 James Troup <james@nocrew.org>
-# $Id: jenna,v 1.25 2003-05-02 13:53:57 troup Exp $
+# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
+# $Id: jenna,v 1.28 2004-06-17 15:02: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
delete_table = "bin_associations";
delete_col = "bin";
- if apt_pkg.VersionCompare(highest_arch_any_version, arch_all_version) != 1:
+ if apt_pkg.VersionCompare(highest_arch_any_version, arch_all_version) < 1:
# arch: all dominates
delete_packages(arch_any_versions, pkg, "all", suite,
arch_all_version, delete_table, delete_col, 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;
################################################################################
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
Logger = logging.Logger(Cnf, "jenna");
- utils.try_with_debug(do_da_do_da);
+ do_da_do_da();
Logger.close();
#########################################################################################