]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- when spec was changed but release was not bumped (and thus exactly same tag
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 7 Nov 2002 23:11:49 +0000 (23:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  name-version-release already exists on some previous revision) then fail
  if building (idea by malekith!)

Changed files:
    builder.sh -> 1.123

builder.sh

index 00ff8bda7f8336cfbb2ed2e1e3fb573d8d5d6151..7a8647ec4d983a4cb7d71de80f0bb4a1f432652e 100644 (file)
@@ -209,7 +209,7 @@ Exit_error()
        echo "Error: some source, patch or icon files not stored in CVS repo. ($2)";
        exit 4 ;;
     "err_build_fail" )
-       echo "Error: package build failed.";
+       echo "Error: package build failed. (${2:-no more info})";
        exit 5 ;;
     esac
 }
@@ -623,6 +623,17 @@ case "$COMMAND" in
        if [ -n "$SPECFILE" ]; then
            get_spec;
            parse_spec;
+
+           if [ -n "$FAIL_IF_CHANGED_BUT_NOT_BUMPED" ]; then
+               TAGVER=$PACKAGE_NAME-`echo $PACKAGE_VERSION | sed -e "s/\./\_/g"`-`echo $PACKAGE_RELEASE | sed -e "s/\./\_/g"`
+               CURTAGREL=$(cvs status $SPECFILE | grep "Working revision:" | awk '{ print $3 }')
+               TAGREL=$(cvs status -v $SPECFILE | grep -E "[[:space:]]${TAGVER}[[[:space:]]" | sed -e 's#.*(revision: ##g' -e 's#).*##g')
+
+               if [ -n "$TAGREL" -a "$TAGREL" != "$CURTAGREL" ]; then
+                   Exit_error err_build_fail "not bumped ver-rel - was already used in rev $TAGREL"
+               fi
+           fi
+
            if [ -n "$ICONS" ]; then
                get_files $ICONS;
                parse_spec;
This page took 0.032834 seconds and 4 git commands to generate.