From 4a9a9aaed763d95ac9d2700b9ebd60539b47c75b Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 4 Nov 2009 21:43:52 +0000 Subject: [PATCH] honour No-Action and say what's going on Signed-off-by: Mark Hymers --- dak/clean_suites.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dak/clean_suites.py b/dak/clean_suites.py index b8f04cc1..a30d3d8a 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -237,7 +237,7 @@ def clean(now_date, delete_date, max_delete, session): cur_date = now_date.strftime("%Y-%m-%d") dest = os.path.join(cnf["Dir::Morgue"], cnf["Clean-Suites::MorgueSubDir"], cur_date) - if not os.path.exists(dest): + if not Options["No-Action"] and not os.path.exists(dest): os.mkdir(dest) # Delete from source @@ -362,6 +362,8 @@ def clean_empty_directories(session): Removes empty directories from pool directories. """ + print "Cleaning out empty directories..." + count = 0 cursor = session.execute( -- 2.39.5