changeset 427:25d702bb13f9

only run upload hook if it is not empty
author Bjoern Ricks <bricks@intevation.de>
date Wed, 28 Jul 2010 08:35:07 +0000
parents 09d6d11d7043
children 383d23c6bfde
files bin/publishpackages.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/publishpackages.py	Wed Jul 07 13:32:28 2010 +0000
+++ b/bin/publishpackages.py	Wed Jul 28 08:35:07 2010 +0000
@@ -168,7 +168,8 @@
                               quiet)
 
     # update apt archive
-    call(config["after_upload_hook"])
+    if config["after_upload_hook"]:
+        call(config["after_upload_hook"])
 
 def main():
     options, args = parse_commandline()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)