Commit f06cd1ea authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Vitaly Lipatov

fix for --last-changelog and --last-version commands.

Run before checking other commands.
parent 1171f19e
......@@ -115,7 +115,17 @@ if [ ! -r "$SPECNAME" ] ; then
fatal "Spec $SPECNAME does not found"
fi
[ -n "$CHANGELOGADD$CHANGELOGUPDATE$TESTRUN$LASTVERCMD$LASTCHANGELOGCMD" ] || fatal "Run with -t param for test or with -h for help"
if [ -n "$LASTVERCMD" ] ; then
echo $(get_version $SPECNAME)-$(get_release $SPECNAME)
exit $?
fi
if [ -n "$LASTCHANGELOGCMD" ] ; then
get_last_changelog $SPECNAME
exit $?
fi
[ -n "$CHANGELOGADD$CHANGELOGUPDATE$TESTRUN" ] || fatal "Run with -t param for test or with -h for help"
if [ -z "$FROMTAG" ] ; then
build_rpms_name $SPECNAME
......@@ -155,16 +165,6 @@ if [ "$INCREMENTMODE" = "-a" ] ; then
fi
fi
if [ -n "$LASTVERCMD" ] ; then
echo $(get_version $SPECNAME)-$(get_release $SPECNAME)
exit $?
fi
if [ -n "$LASTCHANGELOGCMD" ] ; then
get_last_changelog $SPECNAME
exit $?
fi
# increment release
case "$INCREMENTMODE" in
"-r")
......
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