Commit 8bba9bad authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Added a wine rpm uninstall section to wineinstall.

parent bd1908f0
...@@ -78,6 +78,30 @@ then { ...@@ -78,6 +78,30 @@ then {
} }
fi fi
# check whether RPM installed, and if it is, remove any old wine rpm.
hash rpm; RET=$? &>/dev/null
if [ $RET -eq 0 ]; then
if [ -n "`rpm -qi wine 2>/dev/null|grep "^Name"`" ]; then
echo "Warning: Old Wine RPM install detected. We want to get rid of it first."
echo -n "ok (Y/n) ? "
read DOWINE
if [ "$DOWINE" != 'n' -a "$DOWINE" != 'N' ]; then
echo Starting wine rpm removal...
rpm -e wine; RET=$?
if [ $RET -eq 0 ]; then
echo Done.
else
echo FAILED. Probably you aren't installing as root.
fi
else
echo "Sorry, I won't install Wine when an rpm version is still installed."
echo "(Wine support suffered from way too many conflicts)"
echo "Have a nice day !"
exit
fi
fi
fi
# run the configure script, if necessary # run the configure script, if necessary
if [ -f config.cache ] && [ -f Makefile ] && [ Makefile -nt configure ] if [ -f config.cache ] && [ -f Makefile ] && [ Makefile -nt configure ]
......
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