relup: adjust for rpm.org
authorJan Palus <atler@pld-linux.org>
Fri, 20 Nov 2020 22:29:06 +0000 (23:29 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 20 Nov 2020 22:29:06 +0000 (23:29 +0100)
relup.sh

index 7557ba619b1282596364914aa6d253ba8159fbea..8cc645d58d96e318bc57a2501e8eb25261b65efa 100755 (executable)
--- a/relup.sh
+++ b/relup.sh
@@ -38,7 +38,7 @@ get_release() {
        rel=$(awk '/^%define[   ]+_?rel[        ]+/{print $NF}' $specfile)
        if [ -z "$rel" ]; then
                dump=$(get_dump "$specfile")
-               rel=$(echo "$dump" | awk '/PACKAGE_RELEASE/{print $NF; exit}')
+               rel=$(echo "$dump" | awk '$2~/^(PACKAGE_)?RELEASE$/{print $NF; exit}')
        fi
        echo $rel
 }
This page took 0.040146 seconds and 4 git commands to generate.