From: Philipp Kern Date: Tue, 26 Aug 2008 10:19:49 +0000 (+0000) Subject: dak/process_new.py: do not try to free the unchecked lockfile in no-action mode X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c9e78591d57a9dbc1ddd13888a24f42c7a7fe9cc;p=dak.git dak/process_new.py: do not try to free the unchecked lockfile in no-action mode --- 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