[pacman-dev] [PATCH] Use "--mime" instead of file's "-i" parameter, to increase portability

Sebastian Nowicki sebnow at gmail.com
Mon May 26 06:47:07 EDT 2008


On 26/05/2008, at 2:38 PM, Xavier wrote:

> I was fine with this change because it thought it was needed for every
> BSD platform, but seeing it is just a mac osx change almost makes me
> want to reconsider.

I thought it was a more worthwhile patch as well.

> And if you just use COMMAND_MODE=legacy to restore the normal  
> interface,
> this patch is no longer needed?

Yes, it works:
> > COMMAND_MODE=legacy file -bziL libfetch-6.2.0.0.tar.bz2
> application/x-tar (application/x-bzip2)

Some change to the code would still be required though, like setting  
the environment variable. I don't think it would be very elegant to  
require the user to set the environment variable.

--
Sebastian Nowicki





More information about the pacman-dev mailing list