summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-04-08 19:48:28 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-04-08 19:48:28 +0000
commit1d83d8d68ff636ddb2cae02629563558174d621a (patch)
tree819f8300c19f09c42d170c1b91e62cc2f29867cf /buildtools
parent097dcd1f13d66d4726e05aae407415be88bfd19b (diff)
downloadqpid-python-1d83d8d68ff636ddb2cae02629563558174d621a.tar.gz
Updated buildCreator to correctly checkout the specified SVN revision and updated to print the correct values in to the REVISION.txt file.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@763366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/buildCreator/buildCreator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/buildCreator/buildCreator.py b/buildtools/buildCreator/buildCreator.py
index 0db3250179..0eae0b5422 100755
--- a/buildtools/buildCreator/buildCreator.py
+++ b/buildtools/buildCreator/buildCreator.py
@@ -1039,7 +1039,7 @@ def addPatchVersions(source, filename):
url = getValue(patch.getElementsByTagName(URL)[0])
substitution += "\n" + ECHO_BIN + " \"\t\tURL:" + url + "\" >> "+filename
if (type == SVN):
- if (source.getElementsByTagName(REVISION).length > 0):
+ if (patch.getElementsByTagName(REVISION).length > 0):
substitution += "\n" + ECHO_BIN + " \"\t\tREVISION:"+ \
getValue(patch.getElementsByTagName(REVISION)[0]) + "\" >> " + filename
else:
@@ -1112,7 +1112,7 @@ def downloadSource(source, destination):
command = SVN_BIN+" co "+url+" "+targetdir
if (source.getElementsByTagName(REVISION).length > 0):
revision = getValue(source.getElementsByTagName(REVISION)[0])
- command = command+" -r"+revision
+ command = SVN_BIN+" co "+url+"@"+revision+" "+targetdir
else:
if (type == HTTP):
command = WGET_BIN+" --no-directories -P "+targetdir+" "+url