[Pkg-javascript-commits] [passportjs] 14/15: Refresh pkginfo patch with nicer version of it

Jérémy Lal kapouer at alioth.debian.org
Sat Oct 26 14:37:40 UTC 2013


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

kapouer pushed a commit to branch master
in repository passportjs.

commit 967b5f2f9d9e5cc2f6a4385df16622d4dd8b768a
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Oct 26 16:34:09 2013 +0200

    Refresh pkginfo patch with nicer version of it
---
 debian/patches/01-drop_pkginfo.patch |   28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/debian/patches/01-drop_pkginfo.patch b/debian/patches/01-drop_pkginfo.patch
index 691f1b5..561a1bf 100644
--- a/debian/patches/01-drop_pkginfo.patch
+++ b/debian/patches/01-drop_pkginfo.patch
@@ -1,22 +1,30 @@
-From: David Paleino <dapal at debian.org>
-Subject: drop need for pkginfo: it's not (yet) available in Debian,
- and its source is missing licensing info. Please also see
- https://github.com/indexzero/node-pkginfo/issues/3
-Origin: vendor
-Forwarded: not-needed
+From: David Paleino <dapal at debian.org>,
+ Jérémy Lal <kapouer at melix.org>
+Subject: require package.json instead of depending on pkginfo
+ pkginfo is near to being useless, see also
+ https://github.com/indexzero/node-pkginfo/pull/10
+Last-Update: 2013-10-26
+Forwarded: https://github.com/jaredhanson/passport/pull/178
 
 ---
  lib/passport/index.js |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
---- passportjs.orig/lib/passport/index.js
-+++ passportjs/lib/passport/index.js
-@@ -286,7 +286,7 @@ exports = module.exports = new Passport(
+--- a/lib/passport/index.js
++++ b/lib/passport/index.js
+@@ -431,7 +431,7 @@
  /**
   * Framework version.
   */
 -require('pkginfo')(module, 'version');
-+exports.version = '0.1.8';
++exports.version = require('../../package.json').version;
  
  /**
   * Expose constructors.
+@@ -450,4 +450,4 @@
+ /**
+  * HTTP extensions.
+  */
+-require('./http/request');
+\ No newline at end of file
++require('./http/request');

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



More information about the Pkg-javascript-commits mailing list