From 87f1f5167cff0dbc3995f2a44366ac89fe30f679 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 16 Nov 2001 21:35:56 +0000 Subject: [PATCH] really fix shania this time. blah. --- shania | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/shania b/shania index 2f86488f..51febbb5 100755 --- a/shania +++ b/shania @@ -2,7 +2,7 @@ # Clean incoming of old unused files # Copyright (C) 2000, 2001 James Troup -# $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 @@ -176,6 +176,11 @@ def main (): 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"), @@ -183,9 +188,6 @@ def main (): ('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") -- 2.39.5