From: Mark Hymers Date: Wed, 4 Nov 2009 21:43:52 +0000 (+0000) Subject: honour No-Action and say what's going on X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a9a9aaed763d95ac9d2700b9ebd60539b47c75b;p=dak honour No-Action and say what's going on Signed-off-by: Mark Hymers --- 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(