Mercurial > treepkg
comparison bin/publishdebianpackages.py @ 451:eacfd3744d16
capture only stdout for treepkginfo
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 13 Aug 2010 14:16:50 +0000 |
parents | 12f3642e1756 |
children | b7aad4cb58bb |
comparison
equal
deleted
inserted
replaced
450:5c06e0a0d329 | 451:eacfd3744d16 |
---|---|
16 from optparse import OptionParser | 16 from optparse import OptionParser |
17 from ConfigParser import SafeConfigParser | 17 from ConfigParser import SafeConfigParser |
18 | 18 |
19 import treepkgcmd | 19 import treepkgcmd |
20 from treepkg.readconfig import read_config_section, convert_bool | 20 from treepkg.readconfig import read_config_section, convert_bool |
21 from treepkg.run import call, capture_output | 21 from treepkg.run import call, capture_stdout |
22 from treepkg.cmdexpand import cmdexpand | 22 from treepkg.cmdexpand import cmdexpand |
23 from treepkg.publish import copy_arch_to_publishdir, prefix_for_remote_command,\ | 23 from treepkg.publish import copy_arch_to_publishdir, prefix_for_remote_command,\ |
24 get_binary_arch | 24 get_binary_arch |
25 | 25 |
26 from treepkg.util import md5sum, expand_filename, remove_trailing_slashes | 26 from treepkg.util import md5sum, expand_filename, remove_trailing_slashes |
74 return parser.parse_args() | 74 return parser.parse_args() |
75 | 75 |
76 def get_treepkg_info(variables): | 76 def get_treepkg_info(variables): |
77 runremote = prefix_for_remote_command(variables["build_user"], | 77 runremote = prefix_for_remote_command(variables["build_user"], |
78 variables["build_host"]) | 78 variables["build_host"]) |
79 xml = capture_output(cmdexpand("@runremote $build_listpackages" | 79 xml = capture_stdout(cmdexpand("@runremote $build_listpackages" |
80 " --newest=$num_newest" | 80 " --newest=$num_newest" |
81 " --only-successful", | 81 " --only-successful", |
82 runremote=runremote, | 82 runremote=runremote, |
83 **variables)) | 83 **variables)) |
84 return TreepkgInfo.fromxml(xml) | 84 return TreepkgInfo.fromxml(xml) |