]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- autoup can fail; detect that
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 25 Oct 2010 05:59:58 +0000 (05:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.635

builder.sh

index 4778468e76f5a8bf487ee0395e65ef808fcaea37..c3c6c71b095e4f5b4ef487c8e70d51faaa61d506 100644 (file)
@@ -1477,6 +1477,10 @@ try_upgrade() {
                        set_release $SPECFILE $PACKAGE_RELEASE 1
                        set_version $SPECFILE $PACKAGE_VERSION $TNEWVER
                        parse_spec
+                       if [ "$PACKAGE_VERSION" != "$TNEWVER" ]; then
+                               echo >&2 "Upgrading version failed, you need to update spec yourself"
+                               exit 1
+                       fi
                        return 1
                fi
        fi
This page took 0.049967 seconds and 4 git commands to generate.