From e79ab1bcf473ae449fa4d7dc10ae6e70ebb04b4d Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Fri, 10 Oct 2008 14:00:33 +0000 Subject: QPID-1336 : Update the revisions for patches to print the svn revision git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@703481 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/buildtools/buildCreator/buildCreator.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'qpid') diff --git a/qpid/buildtools/buildCreator/buildCreator.py b/qpid/buildtools/buildCreator/buildCreator.py index 9929fe9ca0..030a06aceb 100755 --- a/qpid/buildtools/buildCreator/buildCreator.py +++ b/qpid/buildtools/buildCreator/buildCreator.py @@ -613,10 +613,12 @@ def applyPatch(patch): patchSource= _rootDir + PATH_SEP + PATCH_DIR + PATH_SEP + name - for root, dirs, files in os.walk(patchSource, topdown=False): + for root, dirs, files in os.walk(patchSource): + if '.svn' in dirs: + dirs.remove('.svn') for patchName in files: - log("Applying patch '" + name + "' to " + source) - runCommandShowError(basecommand + patchSource + PATH_SEP + patchName) + log("Applying patch '" + name + "'("+patchName+") to " + source) + runCommandShowError(basecommand + patchSource + PATH_SEP + patchName) ################################################################################ @@ -1042,8 +1044,10 @@ def addPatchVersions(source, filename): if (source.getElementsByTagName(REVISION).length > 0): macro += "\n" + ECHO_BIN + " \"\t\tREVISION:"+ \ getValue(patch.getElementsByTagName(REVISION)[0]) + "\" >> " + filename - else: - macro += "\n" + ECHO_BIN + " \"\t\tREVISION: HEAD\" >> "+ filename + else: + macro += "\n" + ECHO_BIN + " -n \"\t\tREVISION: \" >> " + filename + macro += "\n" + SVNVERSION_BIN + " " + _rootDir + PATH_SEP + PATCH_DIR + PATH_SEP + getName(patch) + " >> " + filename + if (patch.getElementsByTagName(PREFIX).length > 0): macro += "\n" + ECHO_BIN + " \"\t\tPREFIX: " + \ -- cgit v1.2.1