From: Mark Hymers Date: Fri, 29 Jul 2011 14:27:06 +0000 (+0100) Subject: Fix thinko regarding ctime and datetime X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa5851a8a0fbc94b007d9ece2461dc88729cfdb;p=dak Fix thinko regarding ctime and datetime Signed-off-by: Mark Hymers --- diff --git a/dak/clean_queues.py b/dak/clean_queues.py index 7ec6afb3..38b95485 100755 --- a/dak/clean_queues.py +++ b/dak/clean_queues.py @@ -67,9 +67,11 @@ Clean out incoming directories. def init (cnf): global delete_date, del_dir + # Used for directory naming now_date = datetime.now() - delete_date = now_date - timedelta(seconds=int(Options["Days"]) * 84600) + # Used for working out times + delete_date = int(time.time())-(int(Options["Days"])*84600) morguedir = cnf.get("Dir::Morgue", os.path.join("Dir::Pool", 'morgue')) morguesubdir = cnf.get("Clean-Queues::MorgueSubDir", 'queue')