[Pkg-javascript-commits] [node-bluebird] 12/17: Refesh fix_root_dir patch

Ross Gammon ross-guest at moszumanska.debian.org
Tue Oct 10 11:39:58 UTC 2017


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

ross-guest pushed a commit to branch master
in repository node-bluebird.

commit 6cf84729f23a981efa7f34e8c26c2a08d04cf4ba
Author: Ross Gammon <rosco2 at ubuntu.com>
Date:   Mon Oct 9 07:59:28 2017 +0200

    Refesh fix_root_dir patch
---
 debian/patches/fix_root_dir.patch | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/debian/patches/fix_root_dir.patch b/debian/patches/fix_root_dir.patch
index 5b44ab0..60cb493 100644
--- a/debian/patches/fix_root_dir.patch
+++ b/debian/patches/fix_root_dir.patch
@@ -11,14 +11,12 @@ Forwarded: not-needed
 
 --- node-bluebird.orig/tools/build.js
 +++ node-bluebird/tools/build.js
-@@ -254,8 +254,8 @@
+@@ -254,7 +254,7 @@
  
  var root = process.cwd();
  // Since rm -rf is called, better be sure...
--if (path.basename(root).toLowerCase() !== "bluebird") {
--    throw new Error("cwd must be se to bluebird project root. Cwd is currently\n\n" +
-+if (path.basename(root).toLowerCase().substring(0, 13) !== "node-bluebird") {
-+    throw new Error("cwd must be set to bluebird project root. Cwd is currently\n\n" +
+-if (path.basename(root).toLowerCase().indexOf("bluebird") !== 0) {
++if (path.basename(root).toLowerCase().indexOf("node-bluebird") !== 0) {
+     throw new Error("cwd must be set to bluebird project root. cwd is currently\n\n" +
          "         " + process.cwd() + "\n");
  }
- var dirs = {

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



More information about the Pkg-javascript-commits mailing list