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