[Pkg-javascript-devel] About mime-types module

Leo Iannacone l3on at ubuntu.com
Wed Jul 2 12:51:46 UTC 2014


On 2 July 2014 11:18, Jérémy Lal <kapouer at melix.org> wrote:
> Le mercredi 02 juillet 2014 à 10:13 +0200, Leo Iannacone a écrit :
>> Hi,
>>
>> I would like to package mime-types for Debian.
>>
>>   https://github.com/expressjs/mime-types
>>
>> Now.. during build, upstream makes HTTP requests to get mime
>> information externally and stores that in local files (already present
>> in git repository) - see build.js file in the repository.
>>
>> As far as I remember, making internet connections during package-build
>> is not allowed (am I wrong?.. is it only for Ubuntu?). On the other
>> hand, as far as I understood, I should not include those files already
>> downloaded and parsed by build.js and stored in lib/* directory...
>>
>> So, what can I do in this case?
>> Allow internet connections during build or use pre-downloaded files ?
>
> Absolutely not !
> Source is downloaded, code-reviewed, copyright-reviewed, etc...
> and only then it is build.
>
> I suggest you just use what's already in debian :
> /etc/mime.types in 'mime-support' package,
> /usr/share/node-mime/node.types in 'node-mime' package.

That's a great idea!
I will patch build system to use them..

> that last one seems to be for mime types that are not official or maybe
> not yet in debian. Could you check if it is possible to include them in
> mime-support - or most of them ?

Yes.. I will file a bug against mime-support :)


Cheers,

Leo.

-- 
Ubuntu Member - http://launchpad.net/~l3on
Home Page - http://leoiannacone.com
GPG Key Id - 0xD282FC25



More information about the Pkg-javascript-devel mailing list