Package: devscripts
Version: 2.25.19
Severity: important

Hi,

uscan --download-current-version seems broken. (I suspect the version 5 
changes.)

pg-hint-plan 18 $ uscan --download --download-current-version
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="pg-hint-plan-18" version="1.8.0-1" (as seen in 
debian/changelog)
uscan info: package="pg-hint-plan-18" version="1.8.0" (no epoch/revision)
uscan info: ./debian/changelog sets package="pg-hint-plan-18" version="1.8.0"
uscan info: Process watch file at: debian/watch
    package = pg-hint-plan-18
    version = 1.8.0
    pkg_dir = .
uscan info: debian/watch isn't formatted in version 5, trying version 4
uscan info: File debian/watch converted into << ==EOF==
Version: 5

Source: https://github.com/ossc-db/pg_hint_plan/tags
Matching-Pattern: .*/REL18_(.*).tar.gz
Uversionmangle: s/_/./g

==EOF==
uscan info: Reset watch_version to 4 because default value may change in 
version 5
uscan info: Parsing uversionmangle: s/_/./g
uscan info: Last orig.tar.* tarball version (from debian/changelog): 1.8.0
uscan info: Download the --download-current-version specified version: 1.8.0
uscan info: Requesting URL:
   https://github.com/ossc-db/pg_hint_plan/tags
uscan info: Matching pattern:
   (?:(?:https://github.com)?\/ossc\-db\/pg_hint_plan\/)?.*/REL18_(.*).tar.gz
uscan info: Found the following matching files on the web page (newest first):
   https://github.com/ossc-db/pg_hint_plan/archive/refs/tags/REL18_1_8_0.tar.gz 
(1.8.0) index=1.8.0-1
   https://github.com/ossc-db/pg_hint_plan/archive/refs/tags/REL18_1_8_0.tar.gz 
(1.8.0) index=1.8.0-1
uscan warn: In debian/watch no matching files for version 1.8.0 in watch line
uscan info: Scan finished


If I put a different package version into debian/changelog, `uscan`
downloads 1.8.0 just fine.


Possibly related: https://qa.debian.org/cgi-bin/watch?pkg=pgreplay now
shows the mangled version for upstream_version. Maybe that's why
--download-current-version doesn't find it?


--- ~/.devscripts ---
USCAN_SYMLINK=rename
USCAN_VERBOSE=yes

Christoph

Reply via email to