X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=shania;h=74a76055a02eab4c063a581be84e17df81c1cced;hb=4d40ad73b577700f97128cdea5e2e177baf38e6a;hp=799aebd49566f0b883b768684fb22fb1e85477e0;hpb=c846e77a848d60dd115f00faa0d9a854161d99eb;p=dak.git diff --git a/shania b/shania index 799aebd4..74a76055 100755 --- a/shania +++ b/shania @@ -2,7 +2,7 @@ # Clean incoming of old unused files # Copyright (C) 2000, 2001, 2002 James Troup -# $Id: shania,v 1.17 2002-10-16 02:47:32 troup Exp $ +# $Id: shania,v 1.18 2005-03-06 21:51:51 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 @@ -197,10 +197,11 @@ def main (): print "Processing incoming..." flush_orphans(); - if os.path.exists("REJECT") and os.path.isdir("REJECT"): + reject = Cnf["Dir::Queue::Reject"] + if os.path.exists(reject) and os.path.isdir(reject): if Options["Verbose"]: print "Processing incoming/REJECT..." - os.chdir("REJECT"); + os.chdir(reject); flush_old(); #######################################################################################