]> git.decadent.org.uk Git - dak.git/commitdiff
really fix shania this time. blah.
authorRyan Murray <rmurray@debian.org>
Fri, 16 Nov 2001 21:35:56 +0000 (21:35 +0000)
committerRyan Murray <rmurray@debian.org>
Fri, 16 Nov 2001 21:35:56 +0000 (21:35 +0000)
shania

diff --git a/shania b/shania
index 2f86488f04df73de9f2e2864a379aabf82578425..51febbb50a5612fad135976f10883b102b952832 100755 (executable)
--- a/shania
+++ b/shania
@@ -2,7 +2,7 @@
 
 # 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
@@ -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")