Commit 28615256 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: fix grep -v check for version macros

parent 940a4546
...@@ -811,7 +811,7 @@ fi ...@@ -811,7 +811,7 @@ fi
if [ "$CURVER" != "$GSSETVERSION" ] ; then if [ "$CURVER" != "$GSSETVERSION" ] ; then
CURRAWVER=$(get_raw_version $spec) CURRAWVER=$(get_raw_version $spec)
if echo "$CURRAWVER" | grep -q "%" && echo "$CURRAWVER" | grep -v -E "^(%ver_major|%major)$" ; then if echo "$CURRAWVER" | grep -q "%" && echo "$CURRAWVER" | grep -v -E -q "^(%ver_major|%major)" ; then
fatal "Can't override macros in Version field, check it manually. Only %ver_major and %major is supported" fatal "Can't override macros in Version field, check it manually. Only %ver_major and %major is supported"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment