[pkg-fso-commits] [SCM] Various non-packaged files branch, master, updated. e1dfcce903b7936cac3958e7a90a9dcb7addc3b2

Steffen Moeller moeller at debian.org
Sun Mar 22 22:48:09 UTC 2009


The following commit has been merged in the master branch:
commit 81db5387ef3da45ed9a74373fcf52f7c17f0b6b9
Author: Steffen Moeller <moeller at debian.org>
Date:   Thu Mar 19 17:31:34 2009 +0100

    tar -> $TAR_APPLICATION
    
    And a new installation of GNU tar will have that variable reset
    to /usr/local/bin/tar

diff --git a/install.sh b/install.sh
index 896accc..0b627a5 100755
--- a/install.sh
+++ b/install.sh
@@ -113,6 +113,7 @@ DOSFSTOOLS_PACKAGE=$INST_MIRROR/pool/main/d/dosfstools/dosfstools_3.0.1-1_armel.
 
 # FSO-MS5 busybox's tar does not support -z
 TAR_PACKAGE=$INST_MIRROR/pool/main/t/tar/tar_1.20-1_armel.deb
+TAR_APPLICATION=tar
 
 
 #
@@ -474,8 +475,8 @@ action_testing () {
 		fi
 	done
 
-	if tar --help 2>&1 | grep "Usage: tar \-\[cxtvO\]" >/dev/null; then
-		echo "W: tar does not support gzip archives"
+	if $TAR_APPLICATION --help 2>&1 | grep "Usage: $TAR_APPLICATION \-\[cxtvO\]" >/dev/null; then
+		echo "W: $TAR_APPLICATION does not support gzip archives"
 		echo "Downloading tar package"
 		wget $TAR_PACKAGE -O /tmp/tar.deb
 		cwd=`pwd`
@@ -489,6 +490,7 @@ action_testing () {
 		ar -x tar.deb data.tar.gz
 		mkdir -p /usr/local
 		gunzip -c data.tar.gz | tar -x -C /usr/local/
+		TAR_APPLICATION=/usr/local/bin/tar
 		rm -f data.tar.gz
 		rm -f tar.deb
 		cd "$cwd"
@@ -502,7 +504,7 @@ action_testing () {
 			echo "Downloading dosfstools package"
 			wget $DOSFSTOOLS_PACKAGE -O /tmp/dosfstools.deb
 			( cd /tmp && ar -x dosfstools.deb data.tar.gz )
-			tar -xz -C / -f /tmp/data.tar.gz
+			$TAR_APPLICATION -xz -C / -f /tmp/data.tar.gz
 			rm -f /tmp/data.tar.gz
 			rm -f /tmp/dosfstools.deb
 		fi
@@ -742,7 +744,7 @@ action_debian () {
 	echo " * Downloading cdebootstrap package"
 	wget $CDEBOOTSTRAP_PACKAGE -O /tmp/cdebootstrap.deb
 	( cd /tmp && ar -x cdebootstrap.deb data.tar.gz )
-	tar -xz -C / -f /tmp/data.tar.gz
+	$TAR_APPLICATION -xz -C / -f /tmp/data.tar.gz
 	rm -f /tmp/data.tar.gz
 	rm -f /tmp/cdebootstrap.deb
 

-- 
Various non-packaged files



More information about the pkg-fso-commits mailing list