wineprefixcreate: Avoid redundant update on initial wineprefix creation.

This commit is contained in:
Alexandre Julliard 2008-05-14 12:23:22 +02:00
parent fb61856b45
commit 87ec7ec5a5
1 changed files with 6 additions and 1 deletions

View File

@ -122,7 +122,12 @@ fi
WINEPREFIX=`cd "$WINEPREFIX" && pwd`
export WINEPREFIX
"${WINELOADER:-$bindir/wine}" wineboot.exe --update
if [ -d "$WINEPREFIX/dosdevices" ]
then
"${WINELOADER:-$bindir/wine}" wineboot.exe --update
else
"${WINELOADER:-$bindir/wine}" wineboot.exe
fi
# Wait for the wineserver to finish