summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/tar/lib/parse.js
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2014-08-07 16:33:35 -0700
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-08-07 16:33:35 -0700
commita5778cdf01425ae39cea80b62f9ec6740aec724a (patch)
tree6b011b6046ca68ee33e2cd811048f3e40558d7d9 /deps/npm/node_modules/tar/lib/parse.js
parent28eee0adb7884e21217c99cbf10a681c7d91b64a (diff)
parentb0277f35bd86d441255dc5a4c19e577e03f03a47 (diff)
downloadandroid-node-v8-a5778cdf01425ae39cea80b62f9ec6740aec724a.tar.gz
android-node-v8-a5778cdf01425ae39cea80b62f9ec6740aec724a.tar.bz2
android-node-v8-a5778cdf01425ae39cea80b62f9ec6740aec724a.zip
Merge remote-tracking branch 'upstream/v0.10' into v0.12
Conflicts: ChangeLog Makefile deps/uv/ChangeLog deps/uv/build.mk deps/uv/src/unix/darwin.c deps/uv/src/unix/getaddrinfo.c deps/uv/src/version.c deps/v8/src/checks.h deps/v8/src/isolate.h lib/cluster.js lib/module.js lib/timers.js lib/tls.js src/node_version.h
Diffstat (limited to 'deps/npm/node_modules/tar/lib/parse.js')
-rw-r--r--deps/npm/node_modules/tar/lib/parse.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/npm/node_modules/tar/lib/parse.js b/deps/npm/node_modules/tar/lib/parse.js
index 884e73dbac..009a85f413 100644
--- a/deps/npm/node_modules/tar/lib/parse.js
+++ b/deps/npm/node_modules/tar/lib/parse.js
@@ -37,6 +37,7 @@ function Parse () {
me.readable = true
me._stream = new BlockStream(512)
me.position = 0
+ me._ended = false
me._stream.on("error", function (e) {
me.emit("error", e)
@@ -118,13 +119,13 @@ Parse.prototype._process = function (c) {
// so appending one tarball to another is technically valid.
// ending without the eof null blocks is not allowed, however.
if (zero) {
- this._ended = this._eofStarted
+ if (this._eofStarted)
+ this._ended = true
this._eofStarted = true
} else {
- this._ended = this._eofStarted = false
+ this._eofStarted = false
this._startEntry(c)
}
-
}
this.position += 512