# Clean incoming of old unused files
# Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
-# $Id: shania,v 1.7 2001-11-14 05:06:14 rmurray Exp $
+# $Id: shania,v 1.8 2001-11-16 21:35:56 rmurray 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
apt_pkg.init();
Cnf = apt_pkg.newConfiguration();
+
+ for i in ["Help", "Incoming", "No-Action", "Verbose" ]:
+ Cnf["Shania::Options::%s" % (i)] = "";
+ Cnf["Shania::Options::Days"] = "14";
+
apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file());
Arguments = [('h',"help","Shania::Options::Help"),
('i',"incoming","Shania::Options::Incoming", "HasArg"),
('n',"no-action","Shania::Options::No-Action"),
('v',"verbose","Shania::Options::Verbose")];
- for i in ["Help", "Incoming", "No-Action", "Verbose" ]:
- Cnf["Shania::Options::%s" % (i)] = "";
- Cnf["Shania::Options::Days"] = 14;
apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
Options = Cnf.SubTree("Shania::Options")