FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 05-20-2008, 05:51 PM
Sebastian Nowicki
 
Default Use "--mime" instead of file's "-i" parameter, to increase portability

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@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


_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 

Thread Tools




All times are GMT. The time now is 09:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org