From 1e9716e68398727fcbda2153e7a2fc6fb9bb8575 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 30 Apr 2009 00:41:11 +0200 Subject: [PATCH] p-u in case we did get called with a directory, do not complain about non-existing .changes files. silently exit instead. helpful for calls from within cron, if you dont want to have an additional otherwise useless if around it Signed-off-by: Joerg Jaspert --- dak/process_unchecked.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 5fce9fa9..87c11d49 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1585,7 +1585,10 @@ def main(): changes_files.remove(f) if changes_files == []: - utils.fubar("Need at least one .changes file as an argument.") + if Cnf["Dinstall::Options::Directory"] == "": + utils.fubar("Need at least one .changes file as an argument.") + else: + sys.exit(0) # Check that we aren't going to clash with the daily cron job -- 2.39.2