]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- warn if spec name is different from package name
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 13 May 2007 15:27:48 +0000 (15:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.505

builder.sh

index ac51efda826621d72dd0613728fdfdfe122eaf59..7e00e5ff0a641892208494994e7abb09e4dc2d54 100644 (file)
@@ -516,6 +516,10 @@ parse_spec()
        PACKAGE_VERSION=$(rpm_dump | awk '$2 == "PACKAGE_VERSION" { print $3; exit}')
        PACKAGE_RELEASE=$(rpm_dump | awk '$2 == "PACKAGE_RELEASE" { print $3; exit}')
 
+       if [ "$PACKAGE_NAME" != "$ASSUMED_NAME" ]; then
+               echo "WARNING! Spec name ($ASSUMED_NAME) does not agree with package name ($PACKAGE_NAME)"
+       fi
+
        if [ -n "$BE_VERBOSE" ]; then
                echo "- Sources :  `nourl $SOURCES`"
                if [ -n "$PATCHES" ]; then
This page took 0.052289 seconds and 4 git commands to generate.