1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-12 12:25:02 -05:00

* file utility was updated to version 4.20, removing code that was there to

catch a bug in 4.19.
This commit is contained in:
Dan McGee 2007-03-03 18:38:57 +00:00
parent a0abb93992
commit 02d46e33d1

View File

@ -769,23 +769,17 @@ else
file_type=$(file -biz "$file") file_type=$(file -biz "$file")
unset cmd unset cmd
case "$file_type" in case "$file_type" in
# START REMOVE
# TODO remove this with release of file v4.20, temp bugfix
*application/empty*)
cmd="tar -xf $file"
warning "file had trouble detecting type, assuming tar" ;;
# END REMOVE
*application/x-tar*) *application/x-tar*)
cmd="tar -xf $file" ;; cmd="tar -xf $file" ;;
*application/x-zip*) *application/x-zip*)
unziphack=1 unziphack=1
cmd="unzip -qqo $file" ;; cmd="unzip -qqo $file" ;;
*application/x-cpio*) *application/x-cpio*)
cmd="bsdtar -x -f $file" ;; cmd="bsdtar -x -f $file" ;;
*application/x-gzip*) *application/x-gzip*)
cmd="gunzip -f $file" ;; cmd="gunzip -f $file" ;;
*application/x-bzip*) *application/x-bzip*)
cmd="bunzip2 -f $file" ;; cmd="bunzip2 -f $file" ;;
esac esac
if [ "$cmd" != "" ]; then if [ "$cmd" != "" ]; then
msg2 "$cmd" msg2 "$cmd"