[Pkg-javascript-commits] [node-zip-stream] 03/05: add patch for readable-stream

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Tue Jul 1 18:14:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-zip-stream.

commit eb2e35d400032ab5da6ac43305c993a0ec6509f4
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Tue Jul 1 18:07:56 2014 +0000

    add patch for readable-stream
---
 debian/patches/readable_stream.patch | 83 ++++++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 84 insertions(+)

diff --git a/debian/patches/readable_stream.patch b/debian/patches/readable_stream.patch
new file mode 100644
index 0000000..b4605f0
--- /dev/null
+++ b/debian/patches/readable_stream.patch
@@ -0,0 +1,83 @@
+Description: readable-stream is only needed for nodejs 0.8 compat
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-01
+
+--- node-zip-stream-0.3.5.orig/lib/util/index.js
++++ node-zip-stream-0.3.5/lib/util/index.js
+@@ -9,7 +9,7 @@ var fs = require('fs');
+ var path = require('path');
+ 
+ var Stream = require('stream').Stream;
+-var PassThrough = require('readable-stream').PassThrough;
++var PassThrough = require('stream').PassThrough;
+ 
+ var loDefaults = require('lodash.defaults');
+ 
+@@ -102,4 +102,4 @@ util.sanitizePath = function() {
+ util.unixifyPath = function() {
+   var filepath = path.join.apply(path, arguments);
+   return filepath.replace(/\\/g, '/');
+-};
+\ No newline at end of file
++};
+--- node-zip-stream-0.3.5.orig/lib/zip-stream.js
++++ node-zip-stream-0.3.5/lib/zip-stream.js
+@@ -6,7 +6,7 @@
+  * https://github.com/ctalkington/node-zip-stream/blob/master/LICENSE-MIT
+  */
+ var inherits = require('util').inherits;
+-var Transform = require('readable-stream').Transform;
++var Transform = require('stream').Transform;
+ 
+ var crc32 = require('buffer-crc32');
+ var ChecksumStream = require('crc32-stream');
+@@ -304,4 +304,4 @@ ZipStream.prototype.write = function(chu
+   }
+ 
+   return Transform.prototype.write.call(this, chunk, cb);
+-};
+\ No newline at end of file
++};
+--- node-zip-stream-0.3.5.orig/test/helpers/index.js
++++ node-zip-stream-0.3.5/test/helpers/index.js
+@@ -3,8 +3,8 @@ var fs = require('fs');
+ var inherits = require('util').inherits;
+ 
+ var Stream = require('stream').Stream;
+-var Readable = require('readable-stream').Readable;
+-var Writable = require('readable-stream').Writable;
++var Readable = require('stream').Readable;
++var Writable = require('stream').Writable;
+ 
+ function adjustDateByOffset(d, offset) {
+   d = (d instanceof Date) ? d : new Date();
+@@ -98,4 +98,4 @@ WriteHashStream.prototype.write = functi
+   return fs.WriteStream.prototype.write.call(this, chunk);
+ };
+ 
+-module.exports.WriteHashStream = WriteHashStream;
+\ No newline at end of file
++module.exports.WriteHashStream = WriteHashStream;
+--- node-zip-stream-0.3.5.orig/test/util.js
++++ node-zip-stream-0.3.5/test/util.js
+@@ -3,9 +3,9 @@ var fs = require('fs');
+ var assert = require('chai').assert;
+ 
+ var Stream = require('stream').Stream;
+-var Readable = require('readable-stream').Readable;
+-var Writable = require('readable-stream').Writable;
+-var PassThrough = require('readable-stream').PassThrough;
++var Readable = require('stream').Readable;
++var Writable = require('stream').Writable;
++var PassThrough = require('stream').PassThrough;
+ 
+ var helpers = require('./helpers');
+ var BinaryStream = helpers.BinaryStream;
+@@ -125,4 +125,4 @@ describe('utils', function() {
+     });
+   });
+ 
+-});
+\ No newline at end of file
++});
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d7678e3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+readable_stream.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-zip-stream.git



More information about the Pkg-javascript-commits mailing list