summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2010-01-05 11:45:23 +0000
committerRobert Gemmell <robbie@apache.org>2010-01-05 11:45:23 +0000
commit15dd7bb94b09cc7abbffda2d92a3d93d82764171 (patch)
treefa6b4997fdd40a932868bc953edee2920aa0e543 /buildtools
parent3a932bfa4ff3da883c404f58622e463da897b918 (diff)
downloadqpid-python-15dd7bb94b09cc7abbffda2d92a3d93d82764171.tar.gz
Fix UNZIP command usage, allow file based dependency URLs to be directories, add debug logging of the release script following variable substitution, and debug logging of its output after execution.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896004 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/buildCreator/buildCreator.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/buildtools/buildCreator/buildCreator.py b/buildtools/buildCreator/buildCreator.py
index 4df7553dea..0a26ce09b0 100755
--- a/buildtools/buildCreator/buildCreator.py
+++ b/buildtools/buildCreator/buildCreator.py
@@ -538,7 +538,7 @@ def postProcess(item, destination):
extractcommand=TAR_BIN+" -vxjf "+root+PATH_SEP+file+" -C " + builddir
if firstline.find(ZIP_DATA) != -1:
- extractcommand=ZIP_BIN+" -v "+root+PATH_SEP+file+" -d "+ builddir
+ extractcommand=UNZIP_BIN+" -v "+root+PATH_SEP+file+" -d "+ builddir
if firstline.find(TAR_DATA) != -1:
extractcommand=TAR_BIN+" -vxf "+root+PATH_SEP+file+" -C "+ builddir
@@ -722,6 +722,8 @@ def performScript(build, scriptName):
script = peformSubstitutionsInScript(build, script)
+ debug(script)
+
runScript(script)
else:
@@ -754,6 +756,12 @@ def sourceDefined(name):
def runScript(script):
(returncode, stdout, stderr) = runCommandWithOutput(script)
+ if _debug:
+ for line in stdout:
+ debug(line)
+ for line in stderr:
+ debug(line)
+
if returncode != 0:
for line in stdout:
warn(line)
@@ -1144,7 +1152,7 @@ def downloadSource(source, destination):
if url.startswith(FTP):
command = WGET_BIN+" -P "+targetdir+" "+url
else:
- command = CP_BIN+" "+url+" "+targetdir
+ command = CP_BIN+" -R "+url+" "+targetdir
else:
warn("Target directory(" + targetdir + ") is not empty please ensure contents are valid or run 'clean "+name+"'")