diff bin/publishdebianpackages.py @ 429:9cfa9f64387a treepkg-status

only rsync specified architectures from cachedir to publishdir
author Bjoern Ricks <bricks@intevation.de>
date Wed, 28 Jul 2010 11:38:00 +0000
parents 3d65b3176159
children 4aaf73a6225e
line wrap: on
line diff
--- a/bin/publishdebianpackages.py	Wed Jul 28 08:38:50 2010 +0000
+++ b/bin/publishdebianpackages.py	Wed Jul 28 11:38:00 2010 +0000
@@ -11,7 +11,6 @@
 
 import os
 import os.path
-import re
 import sys
 import shlex
 
@@ -28,8 +27,6 @@
 from treepkg.info.data import Package
 from treepkg.info.data import CacheDb
 
-EMPTY = re.compile(r'\s*')
-
 config_desc = ["distribution", "section", "num_newest",
                "build_user", "build_host", "build_listpackages",
                "publish_user", "publish_host", 
@@ -230,13 +227,14 @@
         section = config["section"]
 
     architectures = config["architectures"]
-    allarchs = copy_to_cachedir(config, track, revision, quiet, architectures)
-    for arch in allarchs:
-        copy_to_publishdir(config, dist, section, arch, quiet)
+    copy_to_cachedir(config, track, revision, quiet, architectures)
+    for arch in architectures:
+        copy_arch_to_publishdir(config, dist, section, get_binary_arch(arch),
+                                quiet)
 
     # update apt archive
     if config["after_upload_hook"] and \
-        not EMPTY.match(config["after_upload_hook"]):
+        len((config["after_upload_hook"][0]).strip()) > 0:
         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)