From: Kacper Kornet Date: Mon, 7 Nov 2011 22:38:11 +0000 (+0000) Subject: - don't change TAG in is_tag_a_branch X-Git-Tag: auto/th/rpm-build-tools-4.5-3~16^2~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=8efe84f488938af8b339234a7203633bdc341028;hp=68be04ba2ec1b0452a9667708f7afa23ab91aa15;p=packages%2Frpm-build-tools.git - don't change TAG in is_tag_a_branch Changed files: builder.sh -> 1.667 --- diff --git a/builder.sh b/builder.sh index d6fa468..f5de8ba 100644 --- a/builder.sh +++ b/builder.sh @@ -1331,13 +1331,13 @@ is_tag_a_branch() { return 0; fi - TAG=$1 + local _TAG=$1 # escape some regexp characters if part of TAG - TAG=$(echo "$TAG" | sed -e 's#\([\+\*\.]\)#\\\1#g') + _TAG=$(echo "$_TAG" | sed -e 's#\([\+\*\.]\)#\\\1#g') cd "$PACKAGE_DIR" - $CVS_COMMAND status -v $SPECFILE | grep -Eiq "${TAG}.+(branch: [0-9.]+)" + $CVS_COMMAND status -v $SPECFILE | grep -Eiq "${_TAG}.+(branch: [0-9.]+)" return $? }