test-z"$MDISTR"&& fatal "Missed backport version (f.i. run with -M24 param for Master 2.4)"
["$MDISTR"="SS"]&& fatal "It is senseless to backport to Sisyphus. Run with -$CURRENTBRANCHNAME for example."
DISTRVERSION=$(get_altdistr_version $MDISTR)
...
...
@@ -373,7 +378,7 @@ if [ "$VENDOR" = "alt" ] && is_gear $SPECDIR ; then
git merge $CURBRANCH
mv-f$BPSPEC$SPEC
# FIXME: Ctrl-\ and q will cancelled less with return error code
if tty-s&&!(echo"etersoft-build-utils INFO: Please check diff for backported spec:";echo"# etersoft-build-utils NOTE: You can press Ctrl-\ before quit for cancel process.";echo; git diff $USEBRANCH) | less;then
if[-z"$QUIET"]&&tty-s&&!(echo"etersoft-build-utils INFO: Please check diff for backported spec:";echo"# etersoft-build-utils NOTE: You can press Ctrl-\ before quit for cancel process.";echo; git diff $USEBRANCH) | less;then
#git checkout $SPEC $MDISTR
#git checkout $CURBRANCH
fatal "User cancelled. You are still in $USEBRANCH branch with modified spec"