# Sync the ISC configuartion file and the SQL database
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: alyson,v 1.10 2002-10-16 02:47:32 troup Exp $
+# $Id: alyson,v 1.11 2003-01-02 18:10: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 usage(exit_code=0):
+ print """Usage: alyson
+Initalizes some tables in the projectB database based on the config file.
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
+
def get (c, i):
if c.has_key(i):
return "'%s'" % (c[i]);
global Cnf, projectB;
Cnf = utils.get_conf()
+ Arguments = [('h',"help","Alyson::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Alyson::Options::%s" % (i)):
+ Cnf["Alyson::Options::%s" % (i)] = "";
+
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
- apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
+ Options = Cnf.SubTree("Alyson::Options")
+ if Options["Help"]:
+ usage();
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
projectB.query("INSERT INTO section (section) VALUES ('%s%s%s')" % (prefix, section, suffix));
projectB.query("COMMIT WORK");
-#######################################################################################
+################################################################################
if __name__ == '__main__':
main()
# Check for fixable discrepancies between stable and unstable
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: andrea,v 1.8 2002-10-16 02:47:32 troup Exp $
+# $Id: andrea,v 1.9 2003-01-02 18:10: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 usage(exit_code=0):
+ print """Usage: andrea
+Looks for fixable descrepancies between stable and unstable.
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
+
def main ():
global Cnf, projectB;
- Cnf = utils.get_conf()
+ Cnf = utils.get_conf();
+ Arguments = [('h',"help","Andrea::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Andrea::Options::%s" % (i)):
+ Cnf["Andrea::Options::%s" % (i)] = "";
+
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
- apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
+ Options = Cnf.SubTree("Andrea::Options")
+ if Options["Help"]:
+ usage();
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
# Dump variables from a .katie file to stdout
# Copyright (C) 2001, 2002 James Troup <james@nocrew.org>
-# $Id: ashley,v 1.7 2002-10-16 02:47:32 troup Exp $
+# $Id: ashley,v 1.8 2003-01-02 18:10: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
################################################################################
# <elmo> ooooooooooooooohhhhhhhhhhhhhhhhhhhhhhhhh dddddddddeeeeeeeaaaaaaaarrrrrrrrrrr
-# <elmo> iiiiiiiiiiiii tttttttttthhhhhhhhiiiiiiiiiiiinnnnnnnnnkkkkkkkkkkkkk iiiiiiiiiiiiii mmmmmmmmmmiiiiiiiisssssssssssssssseeeeeeeddd uuuupppppppppppp ttttttttthhhhhhhheeeeeeee xxxxxxxssssssseeeeeeeeettttttttttttt aaaaaaaarrrrrrrggggggsssssssss
+# <elmo> iiiiiiiiiiiii tttttttttthhhhhhhhiiiiiiiiiiiinnnnnnnnnkkkkkkkkkkkkk iiiiiiiiiiiiii mmmmmmmmmmeeeeeeeesssssssssssssssseeeeeeeddd uuuupppppppppppp ttttttttthhhhhhhheeeeeeee xxxxxxxssssssseeeeeeeeettttttttttttt aaaaaaaarrrrrrrggggggsssssssss
#
# ['xset r rate 30 250' bad, mmkay]
import sys;
import katie, utils;
+import apt_pkg;
+
+
+################################################################################
+
+def usage(exit_code=0):
+ print """Usage: ashley FILE...
+Dumps the info in .katie FILE(s).
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
def main():
Cnf = utils.get_conf()
+ Arguments = [('h',"help","Ashley::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Ashley::Options::%s" % (i)):
+ Cnf["Ashley::Options::%s" % (i)] = "";
+
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
+
+ Options = Cnf.SubTree("Ashley::Options")
+ if Options["Help"]:
+ usage();
+
k = katie.Katie(Cnf);
for arg in sys.argv[1:]:
arg = utils.validate_changes_file_arg(arg);
if dsc_files[file]:
utils.warn("dsc_files[%s] still has following unrecognised keys: %s" % (file, dsc_files[file].keys()));
+################################################################################
if __name__ == '__main__':
main()
# Cruft checker for overrides
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: cindy,v 1.10 2002-05-23 09:54:23 troup Exp $
+# $Id: cindy,v 1.11 2003-01-02 18:10: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
######################################################################
# NB: cindy is not a good idea with New Incoming as she doesn't take #
# into account accepted. You can minimize the impact of this by #
-# running her immediately after katie but that's still racy because #
-# lisa doesn't lock with katie. A better long term fix is the evil #
+# running her immediately after kelly but that's still racy because #
+# lisa doesn't lock with kelly. A better long term fix is the evil #
# plan for accepted to be in the DB. #
######################################################################
################################################################################
+def usage (exit_code=0):
+ print """Usage: cindy
+Check for cruft in overrides.
+
+ -h, --help show this help and exit"""
+
+ sys.exit(exit_code)
+
+################################################################################
+
def process(suite, component, type):
global override;
global Cnf, projectB, override;
Cnf = utils.get_conf()
- apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
+
+ Arguments = [('h',"help","Cindy::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Cindy::Options::%s" % (i)):
+ Cnf["Cindy::Options::%s" % (i)] = "";
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
+ Options = Cnf.SubTree("Cindy::Options")
+
+ if Options["Help"]:
+ usage();
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
print "Processing %s [%s - %s]..." % (suite, component, type);
process(suite, component, type);
-#######################################################################################
+################################################################################
if __name__ == '__main__':
main()
# Output override files for apt-ftparchive and indices/
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: denise,v 1.14 2002-10-16 02:47:32 troup Exp $
+# $Id: denise,v 1.15 2003-01-02 18:10: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 usage(exit_code=0):
+ print """Usage: denise
+Outputs the override tables to text files.
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
+
def list(file, suite, component, type):
global override;
global Cnf, projectB, override;
Cnf = utils.get_conf()
- Arguments = [('D',"debug","Denise::Options::Debug", "IntVal"),
- ('h',"help","Denise::Options::Help"),
- ('V',"version","Denise::Options::Version")];
+ Arguments = [('h',"help","Denise::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Denise::Options::%s" % (i)):
+ Cnf["Denise::Options::%s" % (i)] = "";
apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
+ Options = Cnf.SubTree("Denise::Options")
+ if Options["Help"]:
+ usage();
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
# Produces a report on NEW and BYHAND packages
# Copyright (C) 2001, 2002 James Troup <james@nocrew.org>
-# $Id: helena,v 1.3 2002-12-08 17:25:47 troup Exp $
+# $Id: helena,v 1.4 2003-01-02 18:10: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 plural (x):
+def usage(exit_code=0):
+ print """Usage: helena
+Prints a report of packages in queue directories (usually new and byhand).
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
+
+def plural(x):
if x > 1:
return "s";
else:
global Cnf, Katie;
Cnf = utils.get_conf();
- apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
+ Arguments = [('h',"help","Helena::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Helena::Options::%s" % (i)):
+ Cnf["Helena::Options::%s" % (i)] = "";
+
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
+
+ Options = Cnf.SubTree("Helena::Options")
+ if Options["Help"]:
+ usage();
+
Katie = katie.Katie(Cnf);
directories = Cnf.ValueList("Helena::Directories");
if not directories:
- directories = [ "byhand", "new"]
+ directories = [ "byhand", "new" ];
for directory in directories:
changes_files = glob.glob("%s/*.changes" % (Cnf["Dir::Queue::%s" % (directory)]));
# Check for obsolete binary packages
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: rene,v 1.15 2002-10-16 02:47:32 troup Exp $
+# $Id: rene,v 1.16 2003-01-02 18:10: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 usage(exit_code=0):
+ print """Usage: rene
+Check for obsolete or duplicated packages.
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
+
def main ():
global Cnf, projectB;
- Cnf = utils.get_conf()
+ Cnf = utils.get_conf();
+
+ Arguments = [('h',"help","Rene::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Rene::Options::%s" % (i)):
+ Cnf["Rene::Options::%s" % (i)] = "";
+
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
+
+ Options = Cnf.SubTree("Rene::Options")
+ if Options["Help"]:
+ usage();
- apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
print
print q
-####################################################################################################
+################################################################################
if __name__ == '__main__':
main()
# Initial setup of an archive
# Copyright (C) 2002 James Troup <james@nocrew.org>
-# $Id: rose,v 1.2 2002-11-22 04:07:10 troup Exp $
+# $Id: rose,v 1.3 2003-01-02 18:10: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 usage(exit_code=0):
+ print """Usage: rose
+Creates directories for an archive based on katie.conf configuration file.
+
+ -h, --help show this help and exit."""
+ sys.exit(exit_code)
+
+################################################################################
def do_dir(target, config_name):
if os.path.exists(target):
global AptCnf, Cnf, projectB;
Cnf = utils.get_conf()
- apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
+ Arguments = [('h',"help","Rose::Options::Help")];
+ for i in [ "help" ]:
+ if not Cnf.has_key("Rose::Options::%s" % (i)):
+ Cnf["Rose::Options::%s" % (i)] = "";
+
+ apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
+
+ Options = Cnf.SubTree("Rose::Options")
+ if Options["Help"]:
+ usage();
AptCnf = apt_pkg.newConfiguration();
apt_pkg.ReadConfigFileISC(AptCnf,utils.which_apt_conf_file());