Bug#800704: [uscan] please allow multiple pgpsigmangleurl for a single line
Mattia Rizzolo
mattia at mapreri.org
Tue Oct 6 17:32:06 UTC 2015
On Wed, Oct 07, 2015 at 12:30:40AM +0900, Osamu Aoki wrote:
> Hi,
>
> On Fri, Oct 02, 2015 at 09:58:38PM -0400, James McCoy wrote:
> On Fri, Oct 02, 2015 at 05:47:36PM +0000, Mattia Rizzolo wrote:
> > It would be handy to specify a list of possibilities and then uscan can
> > try all of them, maybe finding a signature somewhere.
> we should be able to handle this with the separate watch
> line strategy with pgpmode=next and pgpmode=previous in multiar.
>
> There you can set up tp accept botyh.
So, I tried it out (directly from the vcs, clearly).
This is my current watchfile:
---------------------------------------------------------
version=4
opts="\
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/, \
dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//, \
pgpmode=next" \
https://launchpad.net/inkscape (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)) debian
opts="pgpmode=previous" https://launchpad.net/inkscape (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig) previous uupdate
---------------------------------------------------------
but:
% ~/devel/devscripts/devscripts/scripts/uscan.pl --verbose --report --debug
[...]
uscan.pl debug: matching pattern(s) (?:(?:https://launchpad.net)?\/inkscape)?(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz))
uscan.pl debug: uversionmangle rule s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
uscan.pl debug: uversionmangle rule s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
-- Found the following matching hrefs on the web page (newest first):
https://launchpad.net/inkscape/0.91.x/0.91/+download/inkscape-0.91.tar.gz (0.91)
https://launchpad.net/inkscape/0.91.x/0.91/+download/inkscape-0.91.tar.bz2 (0.91)
uscan.pl debug: newest upstream tarball version selected for download (uversionmangled): 0.91
uscan.pl debug: download filename https://launchpad.net/inkscape/0.91.x/0.91/+download/inkscape-0.91.tar.gz
uscan.pl debug: new filename selected for download (filenamemangled): inkscape-0.91.tar.gz
uscan.pl debug: downloadurlmangled upstream URL https://launchpad.net/inkscape/0.91.x/0.91/+download/inkscape-0.91.tar.gz
Newest version on remote site is 0.91, local version is 0.91
=> Package is up to date
-- In debian/watch, processing watchfile line:
opts="pgpmode=previous" https://launchpad.net/inkscape (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig) previous uupdate
uscan.pl debug: opts: pgpmode=previous
uscan.pl debug: line: https://launchpad.net/inkscape (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig) previous uupdate
uscan.pl debug: URL ... part of watch line: https://launchpad.net/inkscape (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig) previous uupdate
uscan.pl debug: $gpgv_used=1, $gpg_used=0, $download=0, $force_download=0
uscan.pl debug: $options{'pgpmode'}=previous, $options{'pgpsigurlmangle'}=undef
uscan.pl debug: last orig.tar.* tarball version: 0~0~0~0~0~0dummy
uscan.pl warning: Unable to set versionmode=prev for the line without opts=pgpmode=prev
in debian/watch, skipping:
https://launchpad.net/inkscape (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig) previous uupdate
-- Scan finished
So, what I'm doing wrong?
I tried copying stuff from
https://people.debian.org/~osamu/uscan.html#HTTP-site-pgpmode-next-previous
but without much success.
Can you hint me? :)
> I should mark this bug under that option.
Yeah, I agree, though I'd be able to see it in action :)
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: http://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20151006/7f5a3282/attachment.sig>
More information about the devscripts-devel
mailing list