summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xqpid/buildtools/buildCreator/buildCreator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/buildtools/buildCreator/buildCreator.py b/qpid/buildtools/buildCreator/buildCreator.py
index 0db3250179..0eae0b5422 100755
--- a/qpid/buildtools/buildCreator/buildCreator.py
+++ b/qpid/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