Hello community,

here is the log from the commit of package nodejs-graceful-fs for 
openSUSE:Factory checked in at 2015-07-02 22:33:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs-graceful-fs (Old)
 and      /work/SRC/openSUSE:Factory/.nodejs-graceful-fs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nodejs-graceful-fs"

Changes:
--------
--- /work/SRC/openSUSE:Factory/nodejs-graceful-fs/nodejs-graceful-fs.changes    
2015-04-27 13:01:16.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-graceful-fs.new/nodejs-graceful-fs.changes   
    2015-07-02 22:33:55.000000000 +0200
@@ -1,0 +2,10 @@
+Fri Jun  5 19:18:12 UTC 2015 - [email protected]
+
+- update version 3.0.8
+
+-------------------------------------------------------------------
+Fri Apr 24 12:12:36 UTC 2015 - [email protected]
+
+- Update to version 3.0.6
+
+-------------------------------------------------------------------

Old:
----
  graceful-fs-3.0.2.tgz

New:
----
  graceful-fs-3.0.8.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nodejs-graceful-fs.spec ++++++
--- /var/tmp/diff_new_pack.5jfvIJ/_old  2015-07-02 22:33:55.000000000 +0200
+++ /var/tmp/diff_new_pack.5jfvIJ/_new  2015-07-02 22:33:55.000000000 +0200
@@ -19,7 +19,7 @@
 %define base_name graceful-fs
 
 Name:           nodejs-graceful-fs
-Version:        3.0.2
+Version:        3.0.8
 Release:        0
 Summary:        fs with incremental backoff on EMFILE
 License:        BSD-2-Clause

++++++ graceful-fs-3.0.2.tgz -> graceful-fs-3.0.8.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/LICENSE new/package/LICENSE
--- old/package/LICENSE 2013-05-27 06:05:36.000000000 +0200
+++ new/package/LICENSE 2015-05-19 03:38:14.000000000 +0200
@@ -1,27 +1,15 @@
-Copyright (c) Isaac Z. Schlueter ("Author")
-All rights reserved.
+The ISC License
 
-The BSD License
+Copyright (c) Isaac Z. Schlueter and Contributors
 
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
 
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/fs.js new/package/fs.js
--- old/package/fs.js   2014-06-06 08:56:00.000000000 +0200
+++ new/package/fs.js   2014-11-19 00:54:38.000000000 +0100
@@ -8,4 +8,4 @@
 var src = pre + process.binding('natives').fs + post
 var vm = require('vm')
 var fn = vm.runInThisContext(src)
-return fn(exports, require, module, __filename, __dirname)
+fn(exports, require, module, __filename, __dirname)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/graceful-fs.js new/package/graceful-fs.js
--- old/package/graceful-fs.js  2014-06-02 02:33:26.000000000 +0200
+++ new/package/graceful-fs.js  2015-06-01 07:03:12.000000000 +0200
@@ -128,7 +128,7 @@
   var tryAgain = false
   if (er) {
     var code = er.code
-    var tryAgain = code === "EMFILE"
+    var tryAgain = code === "EMFILE" || code === "ENFILE"
     if (process.platform === "win32")
       tryAgain = tryAgain || code === "OK"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json    2014-06-11 00:54:52.000000000 +0200
+++ new/package/package.json    2015-06-01 07:07:52.000000000 +0200
@@ -2,7 +2,7 @@
   "author": "Isaac Z. Schlueter <[email protected]> (http://blog.izs.me)",
   "name": "graceful-fs",
   "description": "A drop-in replacement for fs, making various improvements.",
-  "version": "3.0.2",
+  "version": "3.0.8",
   "repository": {
     "type": "git",
     "url": "git://github.com/isaacs/node-graceful-fs.git"
@@ -33,5 +33,10 @@
     "EPERM",
     "EACCESS"
   ],
-  "license": "BSD"
+  "license": "ISC",
+  "devDependencies": {
+    "mkdirp": "^0.5.0",
+    "rimraf": "^2.2.8",
+    "tap": "^1.2.0"
+  }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/polyfills.js new/package/polyfills.js
--- old/package/polyfills.js    2014-06-11 00:54:09.000000000 +0200
+++ new/package/polyfills.js    2015-03-11 22:28:42.000000000 +0100
@@ -214,7 +214,7 @@
           && Date.now() - start < 1000) {
         return rename_(from, to, CB)
       }
-      cb(er)
+      if(cb) cb(er)
     })
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/max-open.js new/package/test/max-open.js
--- old/package/test/max-open.js        1970-01-01 01:00:00.000000000 +0100
+++ new/package/test/max-open.js        2015-06-01 07:06:11.000000000 +0200
@@ -0,0 +1,69 @@
+var test = require('tap').test
+var fs = require('../')
+
+test('open lots of stuff', function (t) {
+  // Get around EBADF from libuv by making sure that stderr is opened
+  // Otherwise Darwin will refuse to give us a FD for stderr!
+  process.stderr.write('')
+
+  // How many parallel open()'s to do
+  var n = 1024
+  var opens = 0
+  var fds = []
+  var going = true
+  var closing = false
+  var doneCalled = 0
+
+  for (var i = 0; i < n; i++) {
+    go()
+  }
+
+  function go() {
+    opens++
+    fs.open(__filename, 'r', function (er, fd) {
+      if (er) throw er
+      fds.push(fd)
+      if (going) go()
+    })
+  }
+
+  // should hit ulimit pretty fast
+  setTimeout(function () {
+    going = false
+    t.equal(opens - fds.length, n)
+    done()
+  }, 100)
+
+
+  function done () {
+    if (closing) return
+    doneCalled++
+
+    if (fds.length === 0) {
+      console.error('done called %d times', doneCalled)
+      // First because of the timeout
+      // Then to close the fd's opened afterwards
+      // Then this time, to complete.
+      // Might take multiple passes, depending on CPU speed
+      // and ulimit, but at least 3 in every case.
+      t.ok(doneCalled >= 2)
+      return t.end()
+    }
+
+    closing = true
+    setTimeout(function () {
+      // console.error('do closing again')
+      closing = false
+      done()
+    }, 100)
+
+    // console.error('closing time')
+    var closes = fds.slice(0)
+    fds.length = 0
+    closes.forEach(function (fd) {
+      fs.close(fd, function (er) {
+        if (er) throw er
+      })
+    })
+  }
+})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/readdir-sort.js 
new/package/test/readdir-sort.js
--- old/package/test/readdir-sort.js    2014-06-02 02:31:04.000000000 +0200
+++ new/package/test/readdir-sort.js    2014-11-18 06:17:22.000000000 +0100
@@ -14,7 +14,6 @@
   g.readdir("whatevers", function (er, files) {
     if (er)
       throw er
-    console.error(files)
     t.same(files, [ "a", "b", "z" ])
     t.end()
   })
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/write-then-read.js 
new/package/test/write-then-read.js
--- old/package/test/write-then-read.js 1970-01-01 01:00:00.000000000 +0100
+++ new/package/test/write-then-read.js 2015-06-01 07:06:16.000000000 +0200
@@ -0,0 +1,47 @@
+var fs = require('../');
+var rimraf = require('rimraf');
+var mkdirp = require('mkdirp');
+var test = require('tap').test;
+var p = require('path').resolve(__dirname, 'files');
+
+process.chdir(__dirname)
+
+// Make sure to reserve the stderr fd
+process.stderr.write('');
+
+var num = 4097;
+var paths = new Array(num);
+
+test('make files', function (t) {
+  rimraf.sync(p);
+  mkdirp.sync(p);
+
+  for (var i = 0; i < num; ++i) {
+    paths[i] = 'files/file-' + i;
+    fs.writeFileSync(paths[i], 'content');
+  }
+
+  t.end();
+})
+
+test('read files', function (t) {
+  // now read them
+  var done = 0;
+  for (var i = 0; i < num; ++i) {
+    fs.readFile(paths[i], function(err, data) {
+      if (err)
+        throw err;
+
+      ++done;
+      if (done === num) {
+        t.pass('success');
+        t.end()
+      }
+    });
+  }
+});
+
+test('cleanup', function (t) {
+  rimraf.sync(p);
+  t.end();
+});


Reply via email to