diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-07-31 09:05:30 -0700 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-07-31 09:05:30 -0700 |
commit | 1223cafea647e2af4580f4990dc313abf4f7a802 (patch) | |
tree | 86187cebe369b35e0075976cefcbe73fd58aede4 /deps/npm/node_modules/tar/lib/parse.js | |
parent | 4f1ae11a62b97052bc83756f8cb8700cc1f61661 (diff) | |
download | android-node-v8-1223cafea647e2af4580f4990dc313abf4f7a802.tar.gz android-node-v8-1223cafea647e2af4580f4990dc313abf4f7a802.tar.bz2 android-node-v8-1223cafea647e2af4580f4990dc313abf4f7a802.zip |
npm: Upgrade to v1.4.21
Diffstat (limited to 'deps/npm/node_modules/tar/lib/parse.js')
-rw-r--r-- | deps/npm/node_modules/tar/lib/parse.js | 7 |
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 |