diff bin/publishpackages.py @ 578:bccd69dedbe5

shlex.split all config parameters that may contain a command Return the command as list and use @ operator for the variable in cmdexpand
author Bjoern Ricks <bricks@intevation.de>
date Sat, 03 Sep 2011 11:53:12 +0000
parents eadcb1bb54e2
children
line wrap: on
line diff
--- a/bin/publishpackages.py	Sat Sep 03 11:48:00 2011 +0000
+++ b/bin/publishpackages.py	Sat Sep 03 11:53:12 2011 +0000
@@ -24,7 +24,8 @@
 from treepkg.publish import prefix_for_remote_command, copy_to_publishdir
 
 config_desc = ["distribution", "section", "num_newest",
-               "build_user", "build_host", "build_listpackages",
+               "build_user", "build_host",
+               ("build_listpackages", shlex.split),
                "publish_user", "publish_host",
                ("after_upload_hook", shlex.split),
                ("publish_remove_old_packages", convert_bool),
@@ -86,7 +87,7 @@
 
     runremote = prefix_for_remote_command(variables["build_user"],
                                           variables["build_host"])
-    files = capture_output(cmdexpand("@runremote $build_listpackages"
+    files = capture_output(cmdexpand("@runremote @build_listpackages"
                                      " @track @revision $pkgtype"
                                      " --newest=$num_newest",
                                      runremote=runremote,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)