Commit a4cb53a2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix spec and gear checking for set tag

parent ec3a38f3
...@@ -151,15 +151,25 @@ if [ -n "${DELETENOW}" ]; then ...@@ -151,15 +151,25 @@ if [ -n "${DELETENOW}" ]; then
exit 0 exit 0
fi fi
if [ -n "$SIGN" ]; then check_gear()
release_check $LISTBUILT {
# create tag according to package release
if is_git $SPECDIR ; then
local GEARCTAG=gear-create-tag local GEARCTAG=gear-create-tag
# create tag according to package release
SPECDIR=`dirname $LISTNAMES`
if is_gear $SPECDIR ; then
# needed corrent user.name/user.email for get GPG id # needed corrent user.name/user.email for get GPG id
$GEARCTAG --force $GEARCTAG --force
# git push ? # git push ?
fi fi
}
if [ -n "$SIGN" ]; then
release_check $LISTBUILT
# workaround about spaces in LISTNAMES
if [ -r "$(echo $LISTNAMES)" ] ; then
# if one spec, check gear
check_gear
fi
echog "Will try to sign follow packages with GPG: \$LISTBUILT" echog "Will try to sign follow packages with GPG: \$LISTBUILT"
cd $RPMDIR/SRPMS cd $RPMDIR/SRPMS
# 1. only rpm command has --addsign 2. do 3 retries # 1. only rpm command has --addsign 2. do 3 retries
......
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