summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-05 16:37:55 -0600
committerDan McGee <dan@archlinux.org>2008-01-05 16:44:43 -0600
commit14e4366c781250092a5131b8fbbeda3aab67bd9d (patch)
tree482c5678881b6baff70436b5b22578bfb6ac938d
parent728b601f7b6df40b77bc5a4fc2dee5c1b1162fc4 (diff)
downloadpacman-14e4366c781250092a5131b8fbbeda3aab67bd9d.tar.xz
makepkg: add application/zip to the recognized types
The recent upgrade of magic.mime in the file program changed the mime type output to application/zip instead of application/x-zip as it is a registered type. Unfortunately we then just skipped zip file extraction becuase of this change. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 99b524c9..0b31485d 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -616,7 +616,7 @@ extract_sources() {
local file_type=$(file -bizL "$file")
local cmd=''
case "$file_type" in
- *application/x-tar*|*application/x-zip*|*application/x-cpio*)
+ *application/x-tar*|*application/zip*|*application/x-zip*|*application/x-cpio*)
cmd="bsdtar -x -f $file" ;;
*application/x-gzip*)
cmd="gunzip -d -f $file" ;;