[dak/master] 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 <joerg@debian.org>
---
dak/process_unchecked.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py
index 5fce9fa..87c11d4 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
--
1.5.6.5
Reply to: