[Wine-patches] [eter-1.0.12] Fix updating attached wineprefix (eterbug #5800).

Alexander Morozov amorozov на etersoft.ru
Ср Янв 26 18:59:17 MSK 2011


----------- следующая часть -----------
From 37ed096a0219407d2f57f233606448640430736b Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 26 Jan 2011 18:39:03 +0300
Subject: [eter-1.0.12] Fix updating attached wineprefix (eterbug #5800).

---
 etersoft/scripts/wine.in |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/etersoft/scripts/wine.in b/etersoft/scripts/wine.in
index 236327f..a716a50 100644
--- a/etersoft/scripts/wine.in
+++ b/etersoft/scripts/wine.in
@@ -192,9 +192,10 @@ update_wine()
 	$WINELOADER --version 2>/dev/null >>$WINEPREFIX/install.log
 	date >>$WINEPREFIX/install.log
 
-	if [ "$ATTACH_MODE" = "yes" ] || [ "$ATTACH_MODE" = "1" ] ; then
-		# jump in attach not for --update
-		[ "$1" = "--update" ] || WINEMODE="--attach"
+	if [ "$ATTACH_MODE" = "yes" ] || [ "$ATTACH_MODE" = "1" ] ||
+		# Run in attach mode if "$CROOT" exists and not writable
+		[ -d "$CROOT" -a ! -w "$CROOT" ]; then
+		WINEMODE="--attach"
 	fi
 
 	# get initialize mode from parameter
-- 
1.7.3.4



Подробная информация о списке рассылки Wine-patches