# Output override files for apt-ftparchive and indices/
# Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
-# $Id: cindy,v 1.3 2001-03-20 00:28:11 troup Exp $
+# $Id: cindy,v 1.4 2001-06-22 22:53:14 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
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+################################################################################
# X-Listening-To: Sanitarium / Master of the Puppets - Metallica
suite_id = db_access.get_suite_id(suite);
if suite_id == -1:
- sys.stderr.write("Suite '%s' not recognised.\n" % (suite));
- sys.exit(2);
+ utils.fubar("Suite '%s' not recognised." % (suite));
component_id = db_access.get_component_id(component);
if component_id == -1:
- sys.stderr.write("Component '%s' not recognised.\n" % (component));
- sys.exit(2);
+ utils.fubar("Component '%s' not recognised." % (component));
type_id = db_access.get_override_type_id(type);
if type_id == -1:
- sys.stderr.write("Type '%s' not recognised. (Valid types are deb, udeb and dsc.)\n" % (type));
- sys.exit(2);
+ utils.fubar("Type '%s' not recognised. (Valid types are deb, udeb and dsc)" % (type));
dsc_type_id = db_access.get_override_type_id("dsc");
if type == "deb" or type == "udeb":
db_access.init(Cnf, projectB);
for suite in [ "stable", "unstable" ]:
- sys.stderr.write("Processing %s...\n" % (suite));
+ print "Processing %s..." % (suite);
for component in Cnf.SubTree("Component").List():
if component == "mixed":
continue; # Ick