File: correct_require_path.patch

package info (click to toggle)
node-sqlite3 4.0.6%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,268 kB
  • sloc: sql: 10,062; cpp: 1,878; sh: 245; makefile: 74; python: 8
file content (31 lines) | stat: -rw-r--r-- 940 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: correct node_sqlite3.node path
 Packaging ship only the release version of node_sqlite3.node in the same lib
 directory like the other parts of node-sqlite3 .
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2013-12-05

---

--- node-sqlite3-2.1.19+ds1.orig/lib/binary_name.js
+++ node-sqlite3-2.1.19+ds1/lib/binary_name.js
@@ -35,10 +35,13 @@ Binary.prototype.getBasePath = function(
 }
 
 Binary.prototype.getRequirePath = function(configuration) {
+    return './' + this.filename();
+/*
     return './' + path.join('binding',
         configuration || this.configuration,
         this.getBasePath(),
         this.filename());
+*/
 }
 
 Binary.prototype.getModuleAbi = function() {
@@ -56,4 +59,4 @@ Binary.prototype.getRemotePath = functio
     return this.uri+this.configuration+'/'+this.getArchivePath();
 }
 
-module.exports.Binary = Binary;
\ No newline at end of file
+module.exports.Binary = Binary;