~ubuntu-branches/ubuntu/trusty/node-mime/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/00-fix_support_files_location.patch

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 11:48:50 UTC
  • mfrom: (1.1.2) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130814114850-hhhm9bmva4jwobla
Tags: 1.2.10-1
* Upstream update
* control:
  + fix Homepage
  + canonicalize Vcs fields
  + fix Node.js name in description and add stub.
* copyright: add Upstream-Contact, Source fields.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From: David Paleino <dapal@debian.org>
2
 
Subject: move *.types to /usr/share/node-mime/
3
 
Origin: vendor
4
 
Forwarded: no
 
1
Description: move *.types to /usr/share/node-mime/
 
2
Forwarded: not-needed
 
3
Author: David Paleino <dapal@debian.org>
 
4
Last-Update: 2013-03-23
5
5
 
6
6
---
7
7
 mime.js |    4 ++--
8
8
 1 file changed, 2 insertions(+), 2 deletions(-)
9
9
 
10
 
--- node-mime.orig/mime.js
11
 
+++ node-mime/mime.js
12
 
@@ -83,10 +83,10 @@ var mime = module.exports = {
 
10
--- a/mime.js
 
11
+++ b/mime.js
 
12
@@ -86,10 +86,10 @@
13
13
 
14
 
 // Load our local copy of
 
14
 // Load local copy of
15
15
 // http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
16
16
-mime.load(path.join(__dirname, 'types/mime.types'));
17
17
+mime.load('/usr/share/node-mime/mime.types');
18
18
 
19
 
 // Overlay enhancements submitted by the node.js community
 
19
 // Load additional types from node.js community
20
20
-mime.load(path.join(__dirname, 'types/node.types'));
21
21
+mime.load('/usr/share/node-mime/node.types');
22
22
 
23
 
 // Set the default type
24
 
 mime.default_type = mime.types.bin;
 
23
 // Default type
 
24
 mime.default_type = mime.lookup('bin');