* Jelmer Vernooij: " Re: Bug#1019568: lintian-brush: Fixer lintian debian-watch-does-not-check-gpg-signature reformats wrongly" (Tue, 13 Sep 2022 05:02:50 +0100):
Hi Jelmer, > On Mon, Sep 12, 2022 at 10:09:40AM +0200, Mathias Behrle wrote: > > running lintian-brush --allow-reformatting > > introduced the following change: > > > > -opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ > > -https://pypi.debian.net/zeep/zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) > > +opts=uversionmangle=s/(rc|a|b|c)/~$1/,pgpsigurlmangle=s/$/.asc/,pgpmode=auto > > https://pypi.debian.net/zeep > > zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) > > > > Note that the slash between zeep/zeep was replaced by a space. > > That's correct behaviour as far as I can tell. This is the canonical > format as documented in the uscan manpage: > > • opts=" ... " http://URL matching-pattern [version [script]] > > • http://URL matching-pattern [version [script]] > > But the manpage also says: > > • If the hrefs do not contain directories, you can combine this with the > previous entry. I.e., http://URL/matching-pattern . > > and that's the format that was used in the original watch file you > quote. Thanks for this explanation. The problem is that the new format doesn't work: with slash: ... uscan info: Looking at $base = https://pypi.debian.net/zeep/ with $filepattern = zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) found $newfile = https://pypi.debian.net/zeep/zeep-4.1.0.tar.gz $newversion = 4.1.0 $lastversion = 4.1.0 uscan info: Matching target for downloadurlmangle: https://pypi.debian.net/zeep/zeep-4.1.0.tar.gz uscan info: Upstream URL(+tag) to download is identified as https://pypi.debian.net/zeep/zeep-4.1.0.tar.gz uscan info: Filename (filenamemangled) for downloaded file: zeep-4.1.0.tar.gz uscan info: Newest version of python-zeep on remote site is 4.1.0, local version is 4.1.0 uscan info: => Package is up to date from: => https://pypi.debian.net/zeep/zeep-4.1.0.tar.gz uscan info: Scan finished with space: ... uscan info: Process watch file at: debian/watch package = python-zeep version = 4.1.0 pkg_dir = . uscan info: opts: uversionmangle=s/(rc|a|b|c)/~$1/,pgpsigurlmangle=s/$/.asc/,pgpmode=auto uscan info: line: https://pypi.debian.net/zeep zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) uscan info: Parsing uversionmangle=s/(rc|a|b|c)/~$1/ uscan info: Parsing pgpsigurlmangle=s/$/.asc/ uscan info: Parsing pgpmode=auto uscan info: line: https://pypi.debian.net/zeep zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) uscan warn: Ignore pgpsigurlmangle because pgpmode=auto uscan info: Last orig.tar.* tarball version (from debian/changelog): 4.1.0 uscan info: Last orig.tar.* tarball version (dversionmangled): 4.1.0 uscan info: Requesting URL: https://pypi.debian.net/zeep uscan info: Matching pattern: (?:(?:https://pypi.debian.net)?\/)?zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) uscan warn: In debian/watch no matching files for watch line https://pypi.debian.net/zeep zeep-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) uscan info: Scan finished So probably a problem with the pypi redirector that does not fully comply with the uscan specs? -- Mathias Behrle PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6 AC29 7E5C 46B9 D0B6 1C71 7681 D6D0 9BE4 8405 BBF6