[Pkg-javascript-commits] [npm2deb] 01/01: use rmadison to find packages

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Oct 27 16:38:14 UTC 2016


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

praveen pushed a commit to branch master
in repository npm2deb.

commit 35a9311da0cdaad960d3e822e1fa8c006a6698b3
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Thu Oct 27 22:05:16 2016 +0530

    use rmadison to find packages
---
 debian/changelog                       |  8 ++++++++
 debian/patches/0001-use-rmadison.patch | 23 +++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 702bb82..a7f2a72 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+npm2deb (0.2.5-2) UNRELEASED; urgency=medium
+
+  * Team upload
+  * Use rmadison for finding existing packages.
+    Thanks to Shanavas M (Closes: #836182)
+
+ -- Pirate Praveen <praveen at debian.org>  Thu, 27 Oct 2016 22:02:48 +0530
+
 npm2deb (0.2.5-1) unstable; urgency=medium
 
   * Imported Upstream version 0.2.5:
diff --git a/debian/patches/0001-use-rmadison.patch b/debian/patches/0001-use-rmadison.patch
new file mode 100644
index 0000000..9320020
--- /dev/null
+++ b/debian/patches/0001-use-rmadison.patch
@@ -0,0 +1,23 @@
+From a672a0e34abee1e613ae82f03fd7b605ff495d8e Mon Sep 17 00:00:00 2001
+From: Shanavas M <shanavas.m2 at gmail.com>
+Date: Thu, 27 Oct 2016 19:06:04 +0300
+Subject: [PATCH] Use rmadison to find available packages
+
+Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836182
+---
+ npm2deb/mapper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/npm2deb/mapper.py b/npm2deb/mapper.py
+index 5a7e26f..ed70b77 100644
+--- a/npm2deb/mapper.py
++++ b/npm2deb/mapper.py
+@@ -56,7 +56,7 @@ def get_debian_package(self, node_module):
+             return result
+ 
+         madison = _getstatusoutput(
+-            'apt-cache madison "%s" | grep Sources' % result['name'])
++            'rmadison -s sid "%s" | grep source' % result['name'])
+ 
+         if madison[0] != 0:
+             result['name'] = None
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6a57f2a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-use-rmadison.patch

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



More information about the Pkg-javascript-commits mailing list