packages: builder - don't change TAG in is_tag_a_branch

draenog draenog at pld-linux.org
Mon Nov 7 23:38:16 CET 2011


Author: draenog                      Date: Mon Nov  7 22:38:16 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- don't change TAG in is_tag_a_branch

---- Files affected:
packages:
   builder (1.666 -> 1.667) 

---- Diffs:

================================================================
Index: packages/builder
diff -u packages/builder:1.666 packages/builder:1.667
--- packages/builder:1.666	Sun Oct 30 07:39:44 2011
+++ packages/builder	Mon Nov  7 23:38:11 2011
@@ -1331,13 +1331,13 @@
 		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 $?
 }
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.666&r2=1.667&f=u



More information about the pld-cvs-commit mailing list