Mercurial > treepkg
diff bin/publishdebianpackages.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 | b7aad4cb58bb |
children |
line wrap: on
line diff
--- a/bin/publishdebianpackages.py Sat Sep 03 11:48:00 2011 +0000 +++ b/bin/publishdebianpackages.py Sat Sep 03 11:53:12 2011 +0000 @@ -29,7 +29,8 @@ from treepkg.info.data import CacheDb config_desc = ["distribution", "section", "num_newest", - "build_user", "build_host", "build_listpackages", + "build_user", "build_host", + ("build_listpackages", shlex.split), "publish_user", "publish_host", ("architectures", shlex.split, "armel i386 source"), ("after_upload_hook", shlex.split, ""), @@ -76,7 +77,7 @@ def get_treepkg_info(variables): runremote = prefix_for_remote_command(variables["build_user"], variables["build_host"]) - xml = capture_stdout(cmdexpand("@runremote $build_listpackages" + xml = capture_stdout(cmdexpand("@runremote @build_listpackages" " --newest=$num_newest" " --only-successful", runremote=runremote,