From: Joerg Jaspert Date: Wed, 29 Apr 2009 22:41:11 +0000 (+0200) Subject: p-u X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1e9716e68398727fcbda2153e7a2fc6fb9bb8575;p=dak.git 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 --- 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