Commit bbf926a4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix release checking in universal manner

parent 3e920915
......@@ -121,7 +121,7 @@ function release_check()
{
if [ "$MENV" = "SS" ] || [ "$MENV" = "DD" ] ; then
for i in $@ ; do
if [ -z "${i/*alt0.M[0-9][0-9]*/}" ] ; then
if [ -z "${i/*alt[0-9].M[0-9][0-9]*/}" ] ; then
#
fatal "Incorrect release in $i package: was prepared for Sisyphus"
fi
......@@ -129,7 +129,7 @@ function release_check()
return
fi
for i in $@ ; do
if [ -n "${i/*alt0.$MENV*/}" ] ; then
if [ -n "${i/*alt[0-9].$MENV*/}" ] ; then
#
fatal "Incorrect release in $i package: was prepared for $MENV"
fi
......@@ -155,6 +155,7 @@ if [ -n "$SIGN" ]; then
release_check $LISTBUILT
# create tag according to package release
if is_git $SPECDIR ; then
# needed corrent user.name/user.email for get GPG id
gear-create-tag --force
# git push ?
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