]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/commitdiff
- allow build if requested tag matches current head
authorMarcin Krol <hawk@tld-linux.org>
Fri, 26 Sep 2014 18:44:51 +0000 (18:44 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 26 Sep 2014 18:44:51 +0000 (18:44 +0000)
builder.sh

index d421351a16f63a20cadb110bb0d0c7df28c85f53..99c11d96c95df60d74137660831e6ddddf96d2d2 100755 (executable)
@@ -1508,6 +1508,7 @@ set_pkgrev() {
        $GETURI $OUTFILEOPT $_tmp $PKGREVS_URL/set/$_rev/$_tag 1>/dev/null 2>&1 || Exit_error err_pkgrev_get "$1"
        local result=$(cat $_tmp)
        rm $_tmp 2>/dev/null
+       [ "$(get_pkgrev "$_tag")" = "$CVSTAG" ] && return 0
        echo "$result" | grep -q -E "^OK$" && return 0
        echo "$result" | grep -q -E "^EXISTS$" && Exit_error err_tag_exists "$_tag"
        Exit_error err_pkgrev_set