From c9e78591d57a9dbc1ddd13888a24f42c7a7fe9cc Mon Sep 17 00:00:00 2001 From: Philipp Kern Date: Tue, 26 Aug 2008 10:19:49 +0000 Subject: [PATCH] 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 deletion(-) diff --git a/ChangeLog b/ChangeLog index ffd4fed0..118a0570 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-26 Philipp Kern + + * dak/process_new.py (do_accept): do not try to free the unchecked + lockfile in no-action mode + 2008-08-16 Joerg Jaspert * config/debian/cron.dinstall: We dont want i18n to ever fail diff --git a/dak/process_new.py b/dak/process_new.py index 9ed65cc5..b40ca6ec 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 -- 2.39.5