Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=fa89b5123d39b4b97452fab3850477ad67cef1a5

commit fa89b5123d39b4b97452fab3850477ad67cef1a5
Author: Michel Hermier <herm...@frugalware.org>
Date:   Sat Apr 10 18:24:24 2010 +0200

util.sh

* Remove tar option -i in Fextract. Replace it with a more generic and
less intrusive variable (_F_extract_taropts), that alow to add extra
options to tar invocation.

diff --git a/source/include/util.sh b/source/include/util.sh
index 4ad8283..922e166 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -1362,11 +1362,11 @@ Fextract() {
tmp="$(echo "${file}" | tr 'A-Z' 'a-z')"
case "${tmp}" in
*.tar.gz|*.tar.z|*.tgz)
-               cmd="tar --use-compress-program=gzip -xif $file" ;;
+               cmd="tar $_F_extract_taropts --use-compress-program=gzip -xf 
$file" ;;
*.tar.bz2|*.tbz2)
-               cmd="tar --use-compress-program=bzip2 -xif $file" ;;
+               cmd="tar $_F_extract_taropts --use-compress-program=bzip2 -xf 
$file" ;;
*.tar)
-               cmd="tar -xf $file" ;;
+               cmd="tar $_F_extract_taropts -xf $file" ;;
*.zip|*.xpi)
unziphack=1
cmd="unzip -qqo $file" ;;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to