[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] dak/process_new.py: do not try to free the unchecked lockfile in no-action mode



---
 ChangeLog          |    5 +++++
 dak/process_new.py |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ffd4fed..118a057 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-26  Philipp Kern  <pkern@debian.org>
+
+	* dak/process_new.py (do_accept): do not try to free the unchecked
+	lockfile in no-action mode
+
 2008-08-16  Joerg Jaspert  <joerg@debian.org>
 
 	* config/debian/cron.dinstall: We dont want i18n to ever fail
diff --git a/dak/process_new.py b/dak/process_new.py
index 9ed65cc..b40ca6e 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -890,7 +890,8 @@ def do_accept():
             Upload.accept(summary, short_summary)
             os.unlink(Upload.pkg.changes_file[:-8]+".dak")
     finally:
-        os.unlink(Cnf["Process-New::AcceptedLockFile"])
+        if not Options["No-Action"]:
+            os.unlink(Cnf["Process-New::AcceptedLockFile"])
 
 def check_status(files):
     new = byhand = 0
-- 
1.5.6.3



Reply to: