[dak/master 3/3] honour No-Action and say what's going on

View: New views
1 Messages — Rating Filter:   Alert me  

[dak/master 3/3] honour No-Action and say what's going on

by Mark Hymers-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Signed-off-by: Mark Hymers <mhy@...>
---
 dak/clean_suites.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dak/clean_suites.py b/dak/clean_suites.py
index b8f04cc..a30d3d8 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(
--
1.6.3.3


--
To UNSUBSCRIBE, email to debian-dak-request@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...