[pacman-dev] [PATCH] Use "--mime" instead of file's "-i" parameter, to increase portability
Sebastian Nowicki
sebnow at gmail.com
Tue May 20 13:51:39 EDT 2008
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 <sebnow at gmail.com>
---
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
More information about the pacman-dev
mailing list