The equivalent of the "-i" argument for file on Linux is "-I" on BSD.
Both version allow the use of the long option "--mime".

Signed-off-by: Sebastian Nowicki <[EMAIL PROTECTED]>
---
 scripts/makepkg.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 9da3687..ce5ac3f 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -606,7 +606,7 @@ extract_sources() {
                fi
 
                # fix flyspray #6246
-               local file_type=$(file -bizL "$file")
+               local file_type=$(file -bzL --mime "$file")
                local cmd=''
                case "$file_type" in
                        
*application/x-tar*|*application/zip*|*application/x-zip*|*application/x-cpio*)
-- 
1.5.4.5


_______________________________________________
pacman-dev mailing list
[email protected]
http://archlinux.org/mailman/listinfo/pacman-dev

Reply via email to