[Pkg-javascript-commits] [node-glob-parent] 02/02: remove path-dirname
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Oct 28 18:06:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-glob-parent.
commit 8528022b02db1b101269bf7f2cf5c05d39627e95
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Fri Oct 28 22:13:10 2016 +0530
remove path-dirname
---
debian/patches/fix-braces.patch | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/debian/patches/fix-braces.patch b/debian/patches/fix-braces.patch
index b315aa7..64b0827 100644
--- a/debian/patches/fix-braces.patch
+++ b/debian/patches/fix-braces.patch
@@ -185,11 +185,8 @@ Index: node-glob-parent/index.js
===================================================================
--- node-glob-parent.orig/index.js
+++ node-glob-parent/index.js
-@@ -2,9 +2,19 @@
-
- var path = require('path');
+@@ -4,7 +4,16 @@ var path = require('path');
var isglob = require('is-glob');
-+var pathDirname = require('path-dirname');
module.exports = function globParent(str) {
- str += 'a'; // preserves full path in case of trailing path separator
@@ -202,7 +199,7 @@ Index: node-glob-parent/index.js
+ str += 'a';
+
+ // remove path parts that are globby
-+ do {str = pathDirname.posix(str)}
++ do {str = path.dirname(str)}
+ while (isglob(str) || /(^|[^\\])[\{\[]/.test(str));
+
+ // remove escape chars and return result
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-glob-parent.git
More information about the Pkg-javascript-commits
mailing list