[Pkg-javascript-commits] [npm2deb] 01/02: Take latest version listed by rmadison

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Sep 28 17:01:23 UTC 2017


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

praveen pushed a commit to branch master
in repository npm2deb.

commit 773ac3852ab3d56e3fded5384b4c96d2910c8978
Author: Pirate Praveen <praveen at debian.org>
Date:   Thu Sep 28 22:28:40 2017 +0530

    Take latest version listed by rmadison
---
 debian/patches/series            |  1 +
 debian/patches/take-latest.patch | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index a1268d9..0943817 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 bump-standards.patch
 blacklist-files.patch
 section-javascript.patch
+take-latest.patch
diff --git a/debian/patches/take-latest.patch b/debian/patches/take-latest.patch
new file mode 100644
index 0000000..1468e46
--- /dev/null
+++ b/debian/patches/take-latest.patch
@@ -0,0 +1,23 @@
+From 08c495f192e7f47efcf8b19aa19245e351f54851 Mon Sep 17 00:00:00 2001
+From: Pirate Praveen Arimbrathodiyil <praveen at debian.org>
+Date: Thu, 28 Sep 2017 22:25:24 +0530
+Subject: [PATCH] take the last result of rmadison
+
+take the last result of rmadison for latest version (currently it takes the oldest version in result). Fixes #86.
+---
+ npm2deb/mapper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/npm2deb/mapper.py b/npm2deb/mapper.py
+index 65eac5f..2119baa 100644
+--- a/npm2deb/mapper.py
++++ b/npm2deb/mapper.py
+@@ -68,7 +68,7 @@ def get_debian_package(self, node_module):
+             return result
+ 
+         madison = _getstatusoutput(
+-            'rmadison -u debian "%s" | grep source' % result['name'])
++            'rmadison -u debian "%s" | grep source | tail -1' % result['name'])
+ 
+         if madison[0] != 0:
+             result['name'] = None

-- 
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