Commit 2aa75f69 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: do fatal if last tag is not on the last commit

parent 7f719a83
...@@ -134,7 +134,7 @@ check_gear_and_tag() ...@@ -134,7 +134,7 @@ check_gear_and_tag()
if $GEARCTAG $FORCE 2>&1 | grep -q "Too many specfiles found"; then if $GEARCTAG $FORCE 2>&1 | grep -q "Too many specfiles found"; then
docmd $GEARCTAG $FORCE -r .gear/$(readlink .gear/rules) && RESULT=0 docmd $GEARCTAG $FORCE -r .gear/$(readlink .gear/rules) && RESULT=0
elif $GEARCTAG $FORCE 2>&1 | grep -q "already exists"; then elif $GEARCTAG $FORCE 2>&1 | grep -q "already exists"; then
echog "Note! Tag unchanged! Use -f key for override tag" is_last_commit_tag || fatal "Tag $(get_last_tag) is set NOT on the last commit! Use -f key for override tag"
RESULT=1 RESULT=1
fi fi
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