# Check for obsolete binary packages
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: rene,v 1.12 2002-05-14 15:33:32 troup Exp $
+# $Id: rene,v 1.13 2002-06-08 00:18: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
os.unlink(temp_filename);
for component in components:
- architectures = Cnf.ValueList("Suite::%s::Architectures" % (suite));
+ architectures = filter(utils.real_arch, Cnf.ValueList("Suite::%s::Architectures" % (suite)));
for architecture in architectures:
- if [ "source", "all" ].count(architecture) != 0:
- continue;
filename = "%s/dists/%s/%s/binary-%s/Packages" % (Cnf["Dir::Root"], suite, component, architecture);
packages = utils.open_file(filename);
Packages = apt_pkg.ParseTagFile(packages);
# Utility functions
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: utils.py,v 1.46 2002-05-23 12:36:15 troup Exp $
+# $Id: utils.py,v 1.47 2002-06-08 00:18: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
################################################################################
+def real_arch(arch):
+ return (arch != "source" and arch != "all");
+
+################################################################################
+
def get_conf():
return Cnf;