Hello community,
here is the log from the commit of package nodejs-fs-write-stream-atomic for
openSUSE:Factory checked in at 2015-07-02 22:38:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs-fs-write-stream-atomic (Old)
and /work/SRC/openSUSE:Factory/.nodejs-fs-write-stream-atomic.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nodejs-fs-write-stream-atomic"
Changes:
--------
---
/work/SRC/openSUSE:Factory/nodejs-fs-write-stream-atomic/nodejs-fs-write-stream-atomic.changes
2015-04-27 13:02:16.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.nodejs-fs-write-stream-atomic.new/nodejs-fs-write-stream-atomic.changes
2015-07-02 22:38:08.000000000 +0200
@@ -1,0 +2,5 @@
+Sat Jun 6 05:25:15 UTC 2015 - [email protected]
+
+- update version 1.0.3
+
+-------------------------------------------------------------------
Old:
----
fs-write-stream-atomic-1.0.2.tgz
New:
----
fs-write-stream-atomic-1.0.3.tgz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ nodejs-fs-write-stream-atomic.spec ++++++
--- /var/tmp/diff_new_pack.OOKAoO/_old 2015-07-02 22:38:09.000000000 +0200
+++ /var/tmp/diff_new_pack.OOKAoO/_new 2015-07-02 22:38:09.000000000 +0200
@@ -19,7 +19,7 @@
%define base_name fs-write-stream-atomic
Name: nodejs-%{base_name}
-Version: 1.0.2
+Version: 1.0.3
Release: 0
Summary: Like fs.createWriteStream(...), but atomic
License: ISC
@@ -45,9 +45,6 @@
cp -pr package.json index.js \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
++++++ fs-write-stream-atomic-1.0.2.tgz -> fs-write-stream-atomic-1.0.3.tgz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/index.js new/package/index.js
--- old/package/index.js 2014-09-29 23:22:55.000000000 +0200
+++ new/package/index.js 2015-05-21 22:40:07.000000000 +0200
@@ -39,18 +39,18 @@
}.bind(this))
}
-function cleanupSync (er) {
+function cleanupSync () {
try {
fs.unlinkSync(this.__atomicTmp)
} finally {
- return fs.WriteStream.prototype.emit.call(this, 'error', er)
+ return
}
}
// When we *would* emit 'close' or 'finish', instead do our stuff
WriteStream.prototype.emit = function (ev) {
if (ev === 'error')
- return cleanupSync(this)
+ cleanupSync.call(this)
if (ev !== 'close' && ev !== 'finish')
return fs.WriteStream.prototype.emit.apply(this, arguments)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json 2014-09-29 23:23:31.000000000 +0200
+++ new/package/package.json 2015-05-21 22:44:25.000000000 +0200
@@ -1,6 +1,6 @@
{
"name": "fs-write-stream-atomic",
- "version": "1.0.2",
+ "version": "1.0.3",
"description": "Like `fs.createWriteStream(...)`, but atomic.",
"main": "index.js",
"directories": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/toolong.js new/package/test/toolong.js
--- old/package/test/toolong.js 1970-01-01 01:00:00.000000000 +0100
+++ new/package/test/toolong.js 2015-05-21 22:38:39.000000000 +0200
@@ -0,0 +1,24 @@
+var path = require('path')
+var test = require('tap').test
+var writeStream = require('../index.js')
+
+function repeat(times, string) {
+ var output = ''
+ for (var ii = 0; ii < times; ++ii) {
+ output += string
+ }
+ return output
+}
+
+var target = path.resolve(__dirname, repeat(1000,'test'))
+
+test('name too long', function (t) {
+ var stream = writeStream(target)
+ stream.on('error', function (er) {
+ t.is(er.code, 'ENAMETOOLONG', target.length + " character name results in
ENAMETOOLONG")
+ })
+ stream.on('close', function () {
+ t.end()
+ })
+ stream.end()
+})
\ No newline at end of file