Commit 2c755a03 authored by Vitaly Lipatov's avatar Vitaly Lipatov

repl: fix recursive replacement

parent 8d4028eb
......@@ -86,14 +86,17 @@ tolocal_anyrepl()
local NEWRESULT=`echo $GREP | sed -e "s|^ *\(.*\)-devel *\$|\1|g" `
fi
NEWRESULT=$(add_32bit_requires $NEWRESULT)
FIXNEWRESULT=$(add_32bit_requires $NEWRESULT)
ALTPKGNAME=$GREP
TARGETPKGNAME="$NEWRESULT"
[ "$NEWRESULT" = "$GREP" ] && return 1
TARGETPKGNAME="$FIXNEWRESULT"
# return if no chance to replace anymore
[ "$FIXNEWRESULT" = "$GREP" ] && return 1
# HACK: return if we get complex result
[ "$FIXNEWRESULT" = "$NEWRESULT" ] && return 1
# try to resolve recursive
tolocal_anyrepl $NEWRESULT $@
tolocal_anyrepl "$FIXNEWRESULT" $@
return 0
}
......
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