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

Leo Iannacone l3on at ubuntu.com
Thu Jul 3 20:11:01 UTC 2014


On 2 July 2014 14:51, Leo Iannacone <l3on at ubuntu.com> wrote:
> 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..


I just realized that this file (used by upstream):
 http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

is shipped with apache2-doc package:
 apache2-doc: /usr/share/doc/apache2-doc/examples/apache2/mime.types.gz


Should I use it instead of /etc/mime.types ?


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



More information about the Pkg-javascript-devel mailing list