]> err.no Git - dak/commitdiff
honour No-Action and say what's going on
authorMark Hymers <mhy@debian.org>
Wed, 4 Nov 2009 21:43:52 +0000 (21:43 +0000)
committerMark Hymers <mhy@debian.org>
Wed, 4 Nov 2009 21:43:52 +0000 (21:43 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/clean_suites.py

index b8f04cc1a572f02a9d86d67b6d5e72c8d7efb391..a30d3d8a62452a9503ef474bbcd3d6d459a60d42 100755 (executable)
@@ -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(