commit 520382b9e2bf57a7ac0f746a6adfbcfbcfbdb6d5
Author: Jan Palus <[email protected]>
Date: Fri Nov 20 23:29:06 2020 +0100
relup: adjust for rpm.org
relup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/relup.sh b/relup.sh
index 7557ba6..8cc645d 100755
--- 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
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/520382b9e2bf57a7ac0f746a6adfbcfbcfbdb6d5
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit