Your message dated Sun, 13 Mar 2016 10:40:48 +0000
with message-id <e1af3s5-0003f2...@franck.debian.org>
and subject line Bug#798867: fixed in npm2deb 0.2.5-1
has caused the Debian Bug report #798867,
regarding check NEW queue as well for package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
798867: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798867
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: npm2deb
Version: 0.2.4-1
Severity: whishlist
Tags: patch
thanks

Hi Leo,

I am bit lazy with ITPs, so maybe npm2deb should also query NEW whether something has been already uploaded.

The attached patch works at least for me ...

Thanks!
 Thorsten
diff --git a/npm2deb/helper.py b/npm2deb/helper.py
index 5e8c1c3..c51a3a5 100644
--- a/npm2deb/helper.py
+++ b/npm2deb/helper.py
@@ -78,6 +78,31 @@ def search_for_bug(module):
                     continue
         return result
 
+def search_in_new(module):
+    if isinstance(module, _Npm2Deb):
+        module = module.name
+    my_print('Looking for packages in NEW:')
+    _debug(1, "calling new-check")
+    found = False
+    formatted = "  {0:20} {1:>3}"
+    url = "https://api.ftp-master.debian.org/sources_in_suite/new";
+    _debug(1, "opening url %s" % url)
+    data = _urlopen(url).read().decode('utf-8')
+    data = _parseJSON(data)
+    result = []
+    for package in data:
+        name = package['source']
+        version = package['version']
+        if not module in name:
+            continue
+        found = True
+        result.append(package)
+        my_print(formatted.format(package['source'],
+                                  package['version']
+                                 ))
+    if not found:
+        my_print("  None")
+    return result
 
 def search_for_reverse_dependencies(module):
     if isinstance(module, _Npm2Deb):
diff --git a/npm2deb/scripts.py b/npm2deb/scripts.py
index b908216..673d144 100644
--- a/npm2deb/scripts.py
+++ b/npm2deb/scripts.py
@@ -100,6 +100,9 @@ def main(argv=None):
         '-d', '--debian', action="store_true",
         default=False, help='search for existing package in debian')
     parser_search.add_argument(
+        '-n', '--new', action="store_true",
+        default=False, help='search for existing package in NEW queue')
+    parser_search.add_argument(
         '-r', '--repository', action="store_true",
         default=False, help='search for existing repository in alioth')
     parser_search.add_argument(
@@ -139,10 +142,11 @@ def main(argv=None):
 def search_for_module(args):
     _helper.DO_PRINT = True
     # enable all by default
-    if not args.bug and not args.debian and not args.repository:
+    if not args.bug and not args.debian and not args.repository and not args.new:
         args.bug = True
         args.debian = True
         args.repository = True
+        args.new = True
     node_module = get_npm2deb_instance(args).name
     if args.debian:
         print("\nLooking for similiar package:")
@@ -154,6 +158,9 @@ def search_for_module(args):
     if args.bug:
         print("")
         _helper.search_for_bug(node_module)
+    if args.new:
+        print("")
+        _helper.search_in_new(node_module)
     print("")
 
     _show_mapper_warnings()

--- End Message ---
--- Begin Message ---
Source: npm2deb
Source-Version: 0.2.5-1

We believe that the bug you reported is fixed in the latest version of
npm2deb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 798...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Leo Iannacone <l...@ubuntu.com> (supplier of updated npm2deb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 13 Mar 2016 09:45:21 +0000
Source: npm2deb
Binary: npm2deb
Architecture: source all
Version: 0.2.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers 
<pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Leo Iannacone <l...@ubuntu.com>
Description:
 npm2deb    - tool to help debianize Node.js modules
Closes: 798867
Changes:
 npm2deb (0.2.5-1) unstable; urgency=medium
 .
   * Imported Upstream version 0.2.5:
     + Search for NEW packages. Thanks to Thorsten Alteholz (Closes: #798867)
     + Bump debhelper version to 9 and standards version to 3.9.7.
       Thanks to Ondřej Nový.
     + Change Vcs-* URLs to https. Thanks to Ondřej Nový.
   * debian/control:
     + Bump Standars-Version 3.9.7
     + Bump debhelper 9
     + Fix VCS-* insecure fields
Checksums-Sha1:
 df3e5f5a1ba329446e2556cf28c60a342920452b 1946 npm2deb_0.2.5-1.dsc
 3e67e437a6d239e3b3eac9554b170d984d900523 29665 npm2deb_0.2.5.orig.tar.gz
 2a16caa3209e200a3767df24dba343021ff1359a 2144 npm2deb_0.2.5-1.debian.tar.xz
 188c24eb708fc4379e8993c384f354051f1b1e4e 17612 npm2deb_0.2.5-1_all.deb
Checksums-Sha256:
 738a033ecea858900ddaa1aa0187471216ea57496498ffd854789a15bf37edc9 1946 
npm2deb_0.2.5-1.dsc
 a9f08bfee699bb19f3459796e6302830b3768d6ff497d64c7fd573cac4cf9f1c 29665 
npm2deb_0.2.5.orig.tar.gz
 d3b649ef966dad37795ba949cf5843bd1b3862ef840cdb458447c8d26ef362e2 2144 
npm2deb_0.2.5-1.debian.tar.xz
 f4a030513ee079e07bca3b5a853b63e6d3165616b214e199a9d257155889acfe 17612 
npm2deb_0.2.5-1_all.deb
Files:
 592413af5abdc46ce2feb27aed5e2ee3 1946 devel extra npm2deb_0.2.5-1.dsc
 6bcd776fff5a6874a34920621c1cedcf 29665 devel extra npm2deb_0.2.5.orig.tar.gz
 aab7589782e35e6f9cf59e9be87e2d9d 2144 devel extra npm2deb_0.2.5-1.debian.tar.xz
 481dd3357869cb329e331517047a4bec 17612 devel extra npm2deb_0.2.5-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJW5T9vAAoJEDMrlP7SgvwlGZwP+QEd2BCFbYbFvi5TjKv+WBf3
jv7W4MKkY0VukpJJNyYp1w3WRrNZz3EcSV4Pf07h2UGZRbymi+FslwaGvt0aJXeF
M9sHUt65LnZ+exI5PeTfplCACGMWNsMJgO+nJWSAk0wXqOugQ7hnnhCSwhxZyIfp
f6nK0v97wkmxq+gOgfG6USb2WsEG+9IAkGya3lsvlCgOdpQpoTlsjixnHXYVqrL2
z5aNI1p7zd30QPfSz9Sou2kVPiIbCk2dWyxCJF9L7H/l9eFxRWTSyzFCVPbPyNe9
L/HvIBbIUsZKrXhhUbWqR7L46xgis79BDvDIrQlglICW4J5sBrJkB5OVokwOVdd/
My5uG0d964l72h6b6xMZIqmr4MJ9xas1NauxaKaOyklwCnzNS7GhRKdXeGqIgFT3
iDFl4m+Xx4jombmXCU5yI6WrgCHWee8nJ9aScEFzZruFrtbzryC4GphrfV/RUPGR
8J/P9d5Le6ttlgSJqKgzZ24tYRGuCQydDS16nFk/j4xZrII5rK+QimvxIJe08pgX
+08TWosj85HZg9K2133EP/l4BPF2cSauVM+ruK2eCexcSMYP78p82glofLSJ4zTR
lWt+ZAnmaXumfbRzifnS6eMvalh4jueZmSDzgNKsXy7ZQnyQD0zfgGk8i2dbEVsV
HtAr9eargfcMYhfNr82w
=ShUh
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to