Commit aae259c5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmlog: add error if add_changelog failed

parent 1f20ad38
#!/bin/sh #!/bin/sh
# 2010 (c) Etersoft http://etersoft.ru # 2010, 2012 (c) Etersoft http://etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru> # Author: Vitaly Lipatov <lav@etersoft.ru>
# Script for update changelog or increment release # Script for update changelog or increment release
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
load_mod spec rpm git etersoft load_mod spec rpm git etersoft
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echog "rpmlog - update changelog" echog "rpmlog - update version/release and changelog"
echog "Usage: rpmlog [-r|-s|-v] [-l|-t] [SPEC] [fromTAG] [toTAG]" echog "Usage: rpmlog [-r|-s|-v] [-l|-t] [SPEC] [fromTAG] [toTAG]"
echo echo
echog "Options:" echog "Options:"
...@@ -109,7 +109,7 @@ if [ -n "$TESTRUN" ] ; then ...@@ -109,7 +109,7 @@ if [ -n "$TESTRUN" ] ; then
exit exit
fi fi
add_changelog_helper "$CHANGELOG" $SPECNAME add_changelog_helper "$CHANGELOG" $SPECNAME || fatal "add_changelog failed, do not commit anything"
# TODO: use gear-commit ? # TODO: use gear-commit ?
git_commit_ignore_nothing $SPECNAME -m "new build $NEWREV (with rpmlog script)" git_commit_ignore_nothing $SPECNAME -m "new build $NEWREV (with rpmlog script)"
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