Package: ntp
Version: 1:4.2.8p4+dfsg-3
Tags: patch

The watch file for ntp fails to report all upstream versions. Attached
is a patch to fix this. Output from uscan is below.

Uscan with current watchfile:
/ntp-4.2.8p4+dfsg$ uscan --report --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
   opts=dversionmangle=s/\+dfsg(\.\d+)?$//;s/\.p/p/
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-([0-9.p]+)\.tar\.gz
-- Found the following matching hrefs:
     ntp-4.2.8p3.tar.gz (4.2.8p3)
     ntp-4.2.8p3.tar.gz (4.2.8p3)
Newest version on remote site is 4.2.8p3, local version is 4.2.8p4+dfsg
 (mangled local version number 4.2.8p4)
 => remote site does not even have current version
-- Scan finished
        

Uscan with change:
/ntp-4.2.8p4+dfsg$ uscan --report --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
   opts=dversionmangle=s/\+dfsg(\.\d+)?$//;s/\.p/p/
https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
ntp-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
-- Found the following matching hrefs:
     ntp-4.2.0.tar.gz (4.2.0)
     ntp-4.2.0.tar.gz (4.2.0)
     ntp-4.2.2.tar.gz (4.2.2)
     ntp-4.2.2.tar.gz (4.2.2)
     ntp-4.2.2p1.tar.gz (4.2.2p1)
     ntp-4.2.2p1.tar.gz (4.2.2p1)
     ntp-4.2.2p2.tar.gz (4.2.2p2)
     ...
     ntp-4.2.8p4.tar.gz (4.2.8p4)
     ntp-4.2.8p4.tar.gz (4.2.8p4)
     ntp-4.2.8p5.tar.gz (4.2.8p5)
     ntp-4.2.8p5.tar.gz (4.2.8p5)
     ntp-4.2.8p6.tar.gz (4.2.8p6)
     ntp-4.2.8p6.tar.gz (4.2.8p6)
     ntp-4.2.8p7.tar.gz (4.2.8p7)
     ntp-4.2.8p7.tar.gz (4.2.8p7)
Newest version on remote site is 4.2.8p7, local version is 4.2.8p4+dfsg
 (mangled local version number 4.2.8p4)
 => Newer version available from

https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p7.tar.gz
-- Scan finished

-- 
Nicholas Luedtke
HPE Linux, Hewlett-Packard Enterprise
diff -urN ntp-4.2.8p4+dfsg/debian/watch ntp-4.2.8p4+dfsg/debian/watch
--- ntp-4.2.8p4+dfsg/debian/watch	2016-05-02 13:41:54.097617470 -0600
+++ ntp-4.2.8p4+dfsg/debian/watch	2016-05-02 13:37:07.793619582 -0600
@@ -1,3 +1,3 @@
 version=3
 opts=dversionmangle=s/\+dfsg(\.\d+)?$//;s/\.p/p/ \
-http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-([0-9.p]+)\.tar\.gz
+https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2 ntp-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to