Fix patch comparison for Golang based project
Change-Id: I00a7103c4bd099106f36f7de521f228e1a5ba0c1
diff --git a/jjb/shell/tagcollisionreject.sh b/jjb/shell/tagcollisionreject.sh
index e72554b..82b4c63 100755
--- a/jjb/shell/tagcollisionreject.sh
+++ b/jjb/shell/tagcollisionreject.sh
@@ -145,7 +145,8 @@
parent_version="$MAJOR.$MINOR.$new_patch"
for existing_tag in $existing_tags
do
- if [[ "$parent_version" == "$existing_tag" ]]
+ semverParseInto $existing_tag C_MAJOR C_MINOR C_PATCH C_SPECIAL
+ if [[ "$MAJOR" == "$C_MAJOR" && "$MINOR" == "$C_MINOR" && "$new_patch" == "$C_PATCH" ]]
then
found_parent=true
fi