changeset 426:56f7da71d41e treepkg-status

fixed a typo regex fails if option is empty
author Bjoern Ricks <bricks@intevation.de>
date Wed, 28 Jul 2010 08:33:48 +0000 (2010-07-28)
parents b0179962ce26
children 3d65b3176159 383d23c6bfde
files bin/publishdebianpackages.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/publishdebianpackages.py	Wed Jul 28 07:35:54 2010 +0000
+++ b/bin/publishdebianpackages.py	Wed Jul 28 08:33:48 2010 +0000
@@ -230,12 +230,13 @@
         section = config["section"]
 
     architectures = config["architectures"]
-    allarchs = opy_to_cachedir(config, track, revision, quiet, architectures)
+    allarchs = copy_to_cachedir(config, track, revision, quiet, architectures)
     for arch in allarchs:
         copy_to_publishdir(config, dist, section, arch, quiet)
 
     # update apt archive
-    if not EMPTY.match(config["after_upload_hook"]):
+    if not config["after_upload_hook"] or \
+        not EMPTY.match(config["after_upload_hook"]):
         if not quiet:
             print "running after upload hook"
         call(config["after_upload_hook"])
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)