Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. LINUX.DEBIAN.DEVEL.MENTOR
  • Mysterious uscan problem

    From Wookey@21:1/5 to All on Tue Oct 31 05:30:01 2023
    uscan is doing something very strange with version numbers and I don't understand what's going on.

    Is it obvious to anyone else how to make this work?

    The package is mbedtls. Which is on github.

    The existing version was only looking for LTS v2.28.x but that's out
    of date, so I changed it to look for v?@ANY_VERSION@, following current
    pattern on https://wiki.debian.org/debian/watch#GitHub

    However, whilst it now finds the current v3.5.0 it insists that the
    version number is 3.5.0.3.5.0
    So it downloads mbedtls-3.5.0.tar.gz but symlinks it as mbedtls_3.5.0.3.5.0.orig.tar.gz
    and then proceeds to put 3.5.0.3.5.0 for the version everywhere, which is clearly wrong.

    This is my watch file:
    version=4
    opts="searchmode=plain, \
    filenamemangle=s%v?@ANY_VERSION@%mbedtls-$1\.tar\.gz%, \
    pgpmode=none" \
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags \ https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v(@ANY_VERSION@) debian uupdate

    which is based on
    https://wiki.debian.org/debian/watch#GitHub (but using tags)

    below is the uscan --debug log:

    but I think the important bit is:
    scan info: Requesting URL:
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    uscan info: Found the following matching hrefs on the web page (newest first):
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0 (3.5.0.3.5.0) index=3.5.0.3.5.0-0

    That bit in brackets is where it all seems to go wrong. The correct url is pulled out of the page but somehow the version is ascribed incorrectly. What exactly _is_ that number in brackets and how is it derived?

    Anyone got any insight into this? I've been messing with uscan for many years and this is the first time I've not been able to work out what's going on.

    $ uscan --debug
    uscan info: uscan (version 2.23.4) See uscan(1) for help
    uscan info: Scan watch files in .
    uscan debug: Found ./mbedtls-3.1.0/debian
    uscan debug: Found ./mbedtls-2.16.9-patches/debian
    uscan debug: Found ./mbedtls-2.16.6/debian
    uscan debug: Found ./mbedtls-2.28.0.uploaded2/debian
    uscan debug: Found ./mbedtls-2.16.9/debian
    uscan debug: Found ./mbedtls-2.16.5/debian
    uscan debug: Found ./mbedtls-2.28.0.uploaded/debian
    uscan debug: Found ./mbedtls-2.28.0/debian
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-3.1.0
    uscan info: package="mbedtls" version="3.1.0-1" (as seen in debian/changelog) uscan info: package="mbedtls" version="3.1.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.16.9-patches uscan info: package="mbedtls" version="2.16.9-0.1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.9" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.16.6
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.28.0.uploaded2
    uscan info: package="mbedtls" version="2.28.0-1" (as seen in debian/changelog) uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.16.9
    uscan info: package="mbedtls" version="2.16.9-0.1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.9" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.16.5
    uscan info: package="mbedtls" version="2.16.5-1" (as seen in debian/changelog) uscan info: package="mbedtls" version="2.16.5" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.28.0.uploaded
    uscan info: package="mbedtls" version="2.28.0-0.2" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-2.28.0
    uscan info: package="mbedtls" version="2.28.0-1" (as seen in debian/changelog) uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: ./mbedtls-3.1.0/debian/changelog sets package="mbedtls" version="3.1.0"
    uscan info: ./mbedtls-2.28.0.uploaded2/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.28.0/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.28.0.uploaded/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.16.9-patches/debian/changelog sets package="mbedtls" version="2.16.9"
    uscan info: ./mbedtls-2.16.9/debian/changelog sets package="mbedtls" version="2.16.9"
    uscan info: ./mbedtls-2.16.5/debian/changelog sets package="mbedtls" version="2.16.5"
    uscan info: Process watch file at: debian/watch
    package = mbedtls
    version = 3.1.0
    pkg_dir = ./mbedtls-3.1.0
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls-$1\.tar\.gz%, pgpmode=none" https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v(
    (?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls-$1\.tar\.gz%, pgpmode=none
    uscan info: line: https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls-$1\.tar\.gz%
    uscan info: Parsing pgpmode=none
    uscan info: line: https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self->{'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog): 3.1.0 uscan info: Last orig.tar.* tarball version (dversionmangled): 3.1.0
    uscan debug: watch file has:
    $base = https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    $filepattern = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
    $lastversion = 3.1.0
    $action = uupdate
    mode = http
    pgpmode = none
    versionmode = newer
    $site = https://api.github.com
    $basedir = /repos/Mbed-TLS/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    uscan info: Found the following matching hrefs on the web page (newest first):
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0 (3.5.0.3.5.0) index=3.5.0.3.5.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.4.1 (3.4.1.3.4.1) index=3.4.1.3.4.1-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.4.0 (3.4.0.3.4.0) index=3.4.0.3.4.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.3.0 (3.3.0.3.3.0) index=3.3.0.3.3.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.2.1 (3.2.1.3.2.1) index=3.2.1.3.2.1-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.2.0 (3.2.0.3.2.0) index=3.2.0.3.2.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.1.0 (3.1.0.3.1.0) index=3.1.0.3.1.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.0.0 (3.0.0.3.0.0) index=3.0.0.3.0.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.5 (2.28.5.2.28.5) index=2.28.5.2.28.5-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.4 (2.28.4.2.28.4) index=2.28.4.2.28.4-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.3 (2.28.3.2.28.3) index=2.28.3.2.28.3-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.2 (2.28.2.2.28.2) index=2.28.2.2.28.2-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.1 (2.28.1.2.28.1) index=2.28.1.2.28.1-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.0 (2.28.0.2.28.0) index=2.28.0.2.28.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.27.0 (2.27.0.2.27.0) index=2.27.0.2.27.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.26.0 (2.26.0.2.26.0) index=2.26.0.2.26.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.25.0 (2.25.0.2.25.0) index=2.25.0.2.25.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.24.0 (2.24.0.2.24.0) index=2.24.0.2.24.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.23.0 (2.23.0.2.23.0) index=2.23.0.2.23.0-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.12 (2.16.12.2.16.12) index=2.16.12.2.16.12-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.11 (2.16.11.2.16.11) index=2.16.11.2.16.11-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.10 (2.16.10.2.16.10) index=2.16.10.2.16.10-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.9 (2.16.9.2.16.9) index=2.16.9.2.16.9-0
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.8 (2.16.8.2.16.8) index=2.16.8.2.16.8-0
    uscan info: Looking at $base = https://api.github.com/repos/Mbed-TLS/mbedtls/tags with
    $filepattern = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) found
    $newfile = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    $newversion = 3.5.0.3.5.0
    $lastversion = 3.1.0
    uscan debug: line: get_upstream_url()
    uscan info: Matching target for downloadurlmangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan info: Upstream URL(+tag) to download is identified as https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan debug: line: get_newfile_base()
    uscan info: Matching target for filenamemangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan debug: safe_replace input="https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0"
    uscan debug: safe_replace with regexp="v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))", replacement="mbedtls-$1\.tar\.gz", and flags=""
    uscan debug: After filenamemangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/mbedtls-3.5.0.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: mbedtls-3.5.0.tar.gz
    uscan debug: line: cmp_versions()
    Newest version of mbedtls on remote site is 3.5.0.3.5.0, local version is 3.1.0
    Newer package available from:
    => https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan debug: line: download_file_and_sig()
    uscan info: Not downloading, using existing file: mbedtls-3.5.0.tar.gz
    uscan info: Missing OpenPGP signature.
    uscan info: New orig.tar.* tarball version (oversionmangled): 3.5.0.3.5.0
    uscan debug: line: mkorigtargz()
    uscan info: Launch mk-origtargz with options:
    --package mbedtls --version 3.5.0.3.5.0 --compression default --directory .. --copyright-file debian/copyright ../mbedtls-3.5.0.tar.gz
    Successfully symlinked ../mbedtls-3.5.0.tar.gz to ../mbedtls_3.5.0.3.5.0.orig.tar.gz.
    uscan info: New orig.tar.* tarball version (after mk-origtargz): 3.5.0.3.5.0 uupdate: PACKAGE = "mbedtls" is in the top of debian/changelog
    uupdate: VERSION = "3.1.0-1" is in the top of debian/changelog
    uupdate: EPOCH = "" is epoch part of $VERSION
    uupdate: SVERSION = "3.1.0-1" is w/o-epoch part of $VERSION
    uupdate: UVERSION = "3.1.0" the upstream portion w/o-epoch of $VERSION uupdate: -> Copy to mbedtls_3.5.0.3.5.0-1.debian.tar.xz
    uscan info: Executing user specified script:
    uupdate -f --verbose --upstream-version 3.5.0.3.5.0
    uupdate: Old: <epoch:><version>-<revision> = 3.1.0-1
    uupdate: Old: <epoch:> =
    uupdate: Old: <version>-<revision> = 3.1.0-1
    uupdate: Old: <version> = 3.1.0
    uupdate: New: <version> = 3.5.0.3.5.0
    dpkg-source: info: extracting mbedtls in mbedtls-3.5.0.3.5.0
    dpkg-source: info: unpacking mbedtls_3.5.0.3.5.0.orig.tar.gz
    dpkg-source: info: unpacking mbedtls_3.5.0.3.5.0-1.debian.tar.xz
    uupdate: Remember: Your current directory is changed back to the old source tree!
    uupdate: Do a "cd ../mbedtls-3.5.0.3.5.0" to see the new source tree and
    edit it to be nice Debianized source.
    uscan info: Process watch file at: debian/watch
    package = mbedtls
    version = 2.28.0
    pkg_dir = ./mbedtls-2.28.0.uploaded2
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(
    2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self->{'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog): 2.28.0 uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
    $base = https://api.github.com/repos/ARMmbed/mbedtls/tags
    $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
    $lastversion = 2.28.0
    $action = uupdate
    mode = http
    pgpmode = none
    versionmode = newer
    $site = https://api.github.com
    $basedir = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
    https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections: https://api.github.com/repositories/6687936/tags uscan warn: In debian/watch no matching files for watch line
    https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
    package = mbedtls
    version = 2.28.0
    pkg_dir = ./mbedtls-2.28.0
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(
    2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self->{'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog): 2.28.0 uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
    $base = https://api.github.com/repos/ARMmbed/mbedtls/tags
    $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
    $lastversion = 2.28.0
    $action = uupdate
    mode = http
    pgpmode = none
    versionmode = newer
    $site = https://api.github.com
    $basedir = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
    https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections: https://api.github.com/repositories/6687936/tags uscan warn: In debian/watch no matching files for watch line
    https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))) debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
    package = mbedtls
    version = 2.28.0
    pkg_dir = ./mbedtls-2.28.0.uploaded
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.
    28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self->{'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog): 2.28.0 uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
    $base = https://api.github.com/repos/ARMmbed/mbedtls/tags
    $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
    $lastversion = 2.28.0
    $action = uupdate
    mode = http
    pgpmode = none
    versionmode = newer
    $site = https://api.github.com
    $basedir = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
    https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections: https://api.github.com/repositories/6687936/tags uscan warn: In debian/watch no matching files for watch line
    https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
    package = mbedtls
    version = 2.16.9
    pkg_dir = ./mbedtls-2.16.9-patches
    uscan debug: parse line opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls-$1\.tar\.gz/ https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian uupdate
    uscan info: opts: filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls-$1\.tar\.gz/ uscan info: line: https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian uupdate
    uscan info: Parsing filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls-$1\.tar\.gz/
    uscan info: line: https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian uupdate
    uscan debug: $self->{'pgpmode'}=default, $self->{'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog): 2.16.9 uscan info: Last orig.tar.* tarball version (dversionmangled): 2.16.9
    uscan debug: watch file has:
    $base = https://github.com/ARMmbed/mbedtls/tags
    $filepattern = .*/v?(\d\S+)\.tar\.gz
    $lastversion = 2.16.9
    $action = uupdate
    mode = http
    pgpmode = default
    versionmode = newer
    $site = https://github.com
    $basedir = /ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
    https://github.com/ARMmbed/mbedtls/tags
    uscan info: redirections: https://github.com/Mbed-TLS/mbedtls/tags
    uscan info: Matching pattern:
    (?:(?:https://github.com)?\/ARMmbed\/mbedtls\/)?.*/v?(\d\S+)\.tar\.gz https\:\/\/github\.com\/Mbed\-TLS\/mbedtls\/.*/v?(\d\S+)\.tar\.gz
    uscan debug: Resolving urls with query part unimplemented
    uscan info: Found the following matching hrefs on the web page (newest first):
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz (3.5.0) index=3.5.0-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz (3.5.0) index=3.5.0-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz (3.5.0) index=3.5.0-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz (3.4.1) index=3.4.1-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz (3.4.1) index=3.4.1-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz (3.4.1) index=3.4.1-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz (3.4.0) index=3.4.0-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz (3.4.0) index=3.4.0-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz (3.4.0) index=3.4.0-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz (2.28.5) index=2.28.5-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz (2.28.5) index=2.28.5-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz (2.28.5) index=2.28.5-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz (2.28.4) index=2.28.4-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz (2.28.4) index=2.28.4-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz (2.28.4) index=2.28.4-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz (2.28.3) index=2.28.3-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz (2.28.3) index=2.28.3-1
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz (2.28.3) index=2.28.3-1
    uscan info: Looking at $base = https://github.com/ARMmbed/mbedtls/tags with
    $filepattern = .*/v?(\d\S+)\.tar\.gz found
    $newfile = https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    $newversion = 3.5.0
    $lastversion = 2.16.9
    uscan debug: line: get_upstream_url()
    uscan info: Matching target for downloadurlmangle: https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan info: Upstream URL(+tag) to download is identified as https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: line: get_newfile_base()
    uscan info: Matching target for filenamemangle: https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: safe_replace input="https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz"
    uscan debug: safe_replace with regexp=".+\/v?(\d\S+)\.tar\.gz", replacement="mbedtls-$1\.tar\.gz", and flags=""
    uscan debug: After filenamemangle: mbedtls-3.5.0.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: mbedtls-3.5.0.tar.gz
    uscan debug: line: cmp_versions()
    Newest version of mbedtls on remote site is 3.5.0, local version is 2.16.9
    Newer package available from:
    => https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz uscan debug: line: download_file_and_sig()
    uscan die: Already downloaded a file named mbedtls-3.5.0.tar.gz: use filenamemangle to avoid this [Devscripts::Uscan::WatchLine: 1241] at /usr/share/perl5/Devscripts/Uscan/Output.pm line 77

    TIA

    Wookey
    --
    Principal hats: Debian, Wookware, ARM
    http://wookware.org/

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEER4nvI8Pe/wVWh5yq+4YyUahvnkcFAmVAgSwACgkQ+4YyUahv nkeRAw/+IygDeTSIOeuYjuOt7K2lDb5vwddnJdLdXr/9Eq1Ljz2qzVHTYx7IXw7F VtBPDjWCrU7wJEAXowispfCHdGaUpYWqmU7x3qwerHodjiFOO/YWaHFXFYaQ0e1H VoJAcKdqzrWRADHNkLgmyz/CO6afotLkOMPZ8PNfHcJJS0zYfIHR40OpyQKJAQWn 5xOtDrTDyGu2wB2n0AEecjInLiYjhLJ1INtIg/WKozz/1br5SH3udIeRBm8LGGIh JQe9pN24HbJ0SO7p0SAGBlogV7d/Pt9bxRqO7BYg21ORAGkWYqimjUf3FBZR2KIR +CMfYcAMxrytbxDBupmceVG5iPkt/u3q78pSdk6nEbprsuNwz747clSk3nRofdZv b9R81fmv3vNWFQHlalEcBjAd8naUFN8bM8P5MvEA37QPQSfFGU/B99ah+c55x+KW 7HURwFufaza0gUu738NLQmnw5sGpL60hbHssQR3X/QtVUotat+ttyvnP7TiNDDeM 4oXh40wAxBSK9qOgWnRy31bYrOMuvw9A9EBDIEpUbj6bz4eaaQ2QRffU5C2zHaFs zIA/aFt/+//8pEBHYXjNXiuIQ6B2eiHpGqpUEdwuRwdITyVxy94m5/t3EImo/QTX mCS3SvMwHjV75RG6u0GxaAqjoijcVycGzABYZ25kE33U/GraWpE=
    =j5M3
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil Wyett@21:1/5 to Wookey on Tue Oct 31 07:20:01 2023
    On Tue, 2023-10-31 at 04:23 +0000, Wookey wrote:
    uscan is doing something very strange with version numbers and I
    don't understand what's going on.

    Is it obvious to anyone else how to make this work?

    The package is mbedtls. Which is on github.

    The existing version was only looking for LTS v2.28.x but that's out
    of date, so I changed it to look for v?@ANY_VERSION@, following
    current
    pattern on https://wiki.debian.org/debian/watch#GitHub

    However, whilst it now finds the current v3.5.0 it insists that the
    version number is 3.5.0.3.5.0
    So it downloads mbedtls-3.5.0.tar.gz but symlinks it as mbedtls_3.5.0.3.5.0.orig.tar.gz
    and then proceeds to put 3.5.0.3.5.0 for the version everywhere,
    which is clearly wrong.

    This is my watch file:
    version=4
    opts="searchmode=plain, \
      filenamemangle=s%v?@ANY_VERSION@%mbedtls-$1\.tar\.gz%, \
      pgpmode=none" \
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags \ https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v(@ANY_VERSION@)
     debian uupdate

    which is based on
    https://wiki.debian.org/debian/watch#GitHub (but using tags)

    below is the uscan --debug log:

    but I think the important bit is:
    scan info: Requesting URL:
       https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    uscan info: Found the following matching hrefs on the web page
    (newest first):
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0  (3.5.0.3.5.0) index=3.5.0.3.5.0-0

    That bit in brackets is where it all seems to go wrong. The correct
    url is pulled out of the page but somehow the version is ascribed incorrectly. What exactly _is_ that number in brackets and how is it
    derived?

    Anyone got any insight into this? I've been messing with uscan for
    many years and this is the first time I've not been able to work out
    what's going on.

    $ uscan --debug
    uscan info: uscan (version 2.23.4) See uscan(1) for help
    uscan info: Scan watch files in .
    uscan debug: Found ./mbedtls-3.1.0/debian
    uscan debug: Found ./mbedtls-2.16.9-patches/debian
    uscan debug: Found ./mbedtls-2.16.6/debian
    uscan debug: Found ./mbedtls-2.28.0.uploaded2/debian
    uscan debug: Found ./mbedtls-2.16.9/debian
    uscan debug: Found ./mbedtls-2.16.5/debian
    uscan debug: Found ./mbedtls-2.28.0.uploaded/debian
    uscan debug: Found ./mbedtls-2.28.0/debian
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    3.1.0
    uscan info: package="mbedtls" version="3.1.0-1" (as seen in
    debian/changelog)
    uscan info: package="mbedtls" version="3.1.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls- 2.16.9-patches
    uscan info: package="mbedtls" version="2.16.9-0.1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.9" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.16.6
    uscan info: Check debian/watch and debian/changelog in ./mbedtls- 2.28.0.uploaded2
    uscan info: package="mbedtls" version="2.28.0-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.16.9
    uscan info: package="mbedtls" version="2.16.9-0.1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.9" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.16.5
    uscan info: package="mbedtls" version="2.16.5-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.5" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls- 2.28.0.uploaded
    uscan info: package="mbedtls" version="2.28.0-0.2" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.28.0
    uscan info: package="mbedtls" version="2.28.0-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: ./mbedtls-3.1.0/debian/changelog sets package="mbedtls" version="3.1.0"
    uscan info: ./mbedtls-2.28.0.uploaded2/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.28.0/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.28.0.uploaded/debian/changelog sets
    package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.16.9-patches/debian/changelog sets
    package="mbedtls" version="2.16.9"
    uscan info: ./mbedtls-2.16.9/debian/changelog sets package="mbedtls" version="2.16.9"
    uscan info: ./mbedtls-2.16.5/debian/changelog sets package="mbedtls" version="2.16.5"
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 3.1.0
        pkg_dir = ./mbedtls-3.1.0
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls-
    $1\.tar\.gz%, pgpmode=none" https://api.github.com/repos/Mbed-TLS/mbedtls/tags  https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s%v?(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls-$1\.tar\.gz%, pgpmode=none
    uscan info: line: https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA- Z]*))%mbedtls-$1\.tar\.gz%
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    3.1.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 3.1.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/Mbed-TLS/mbedtls/tags
        $filepattern = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
        $lastversion = 3.1.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/Mbed-TLS/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    uscan info: Found the following matching hrefs on the web page
    (newest first):
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0  (3.5.0.3.5.0) index=3.5.0.3.5.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.4.1  (3.4.1.3.4.1) index=3.4.1.3.4.1-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.4.0  (3.4.0.3.4.0) index=3.4.0.3.4.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.3.0  (3.3.0.3.3.0) index=3.3.0.3.3.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.2.1  (3.2.1.3.2.1) index=3.2.1.3.2.1-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.2.0  (3.2.0.3.2.0) index=3.2.0.3.2.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.1.0  (3.1.0.3.1.0) index=3.1.0.3.1.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.0.0  (3.0.0.3.0.0) index=3.0.0.3.0.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.5  (2.28.5.2.28.5) index=2.28.5.2.28.5-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.4  (2.28.4.2.28.4) index=2.28.4.2.28.4-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.3  (2.28.3.2.28.3) index=2.28.3.2.28.3-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.2  (2.28.2.2.28.2) index=2.28.2.2.28.2-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.1  (2.28.1.2.28.1) index=2.28.1.2.28.1-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.0  (2.28.0.2.28.0) index=2.28.0.2.28.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.27.0  (2.27.0.2.27.0) index=2.27.0.2.27.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.26.0  (2.26.0.2.26.0) index=2.26.0.2.26.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.25.0  (2.25.0.2.25.0) index=2.25.0.2.25.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.24.0  (2.24.0.2.24.0) index=2.24.0.2.24.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.23.0  (2.23.0.2.23.0) index=2.23.0.2.23.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.12  (2.16.12.2.16.12) index=2.16.12.2.16.12-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.11  (2.16.11.2.16.11) index=2.16.11.2.16.11-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.10  (2.16.10.2.16.10) index=2.16.10.2.16.10-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.9  (2.16.9.2.16.9) index=2.16.9.2.16.9-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.8  (2.16.8.2.16.8) index=2.16.8.2.16.8-0
    uscan info: Looking at $base = https://api.github.com/repos/Mbed-TLS/mbedtls/tags with
        $filepattern = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     found
        $newfile     = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
        $newversion  = 3.5.0.3.5.0
        $lastversion = 3.1.0
    uscan debug: line: get_upstream_url()
    uscan info: Matching target for downloadurlmangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan info: Upstream URL(+tag) to download is identified as    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan debug: line: get_newfile_base()
    uscan info: Matching target for filenamemangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan debug: safe_replace input="https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tag s/v3.5.0"
    uscan debug: safe_replace with regexp="v?(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))", replacement="mbedtls-$1\.tar\.gz", and flags=""
    uscan debug: After filenamemangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/mbedtls-3.5.0.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: mbedtls- 3.5.0.tar.gz
    uscan debug: line: cmp_versions()
    Newest version of mbedtls on remote site is 3.5.0.3.5.0, local
    version is 3.1.0
    Newer package available from:
            => https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0
    uscan debug: line: download_file_and_sig()
    uscan info: Not downloading, using existing file: mbedtls-
    3.5.0.tar.gz
    uscan info: Missing OpenPGP signature.
    uscan info: New orig.tar.* tarball version (oversionmangled):
    3.5.0.3.5.0
    uscan debug: line: mkorigtargz()
    uscan info: Launch mk-origtargz with options:
       --package mbedtls --version 3.5.0.3.5.0 --compression default -- directory .. --copyright-file debian/copyright ../mbedtls-
    3.5.0.tar.gz
    Successfully symlinked ../mbedtls-3.5.0.tar.gz to ../mbedtls_3.5.0.3.5.0.orig.tar.gz.
    uscan info: New orig.tar.* tarball version (after mk-origtargz):
    3.5.0.3.5.0
    uupdate: PACKAGE     = "mbedtls" is in the top of debian/changelog uupdate: VERSION     = "3.1.0-1" is in the top of debian/changelog uupdate: EPOCH       = "" is epoch part of $VERSION
    uupdate: SVERSION    = "3.1.0-1" is w/o-epoch part of $VERSION
    uupdate: UVERSION    = "3.1.0" the upstream portion w/o-epoch of
    $VERSION
    uupdate: -> Copy to      mbedtls_3.5.0.3.5.0-1.debian.tar.xz
    uscan info: Executing user specified script:
       uupdate -f --verbose --upstream-version 3.5.0.3.5.0
    uupdate: Old: <epoch:><version>-<revision> = 3.1.0-1
    uupdate: Old: <epoch:>                     =
    uupdate: Old:         <version>-<revision> = 3.1.0-1
    uupdate: Old:         <version>            = 3.1.
    0
    uupdate: New:         <version>            = 3.5.0.3.5.0 dpkg-source: info: extracting mbedtls in mbedtls-3.5.0.3.5.0
    dpkg-source: info: unpacking mbedtls_3.5.0.3.5.0.orig.tar.gz
    dpkg-source: info: unpacking mbedtls_3.5.0.3.5.0-1.debian.tar.xz
    uupdate: Remember: Your current directory is changed back to the old
    source tree!
    uupdate: Do a "cd ../mbedtls-3.5.0.3.5.0" to see the new source tree
    and
        edit it to be nice Debianized source.
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.28.0
        pkg_dir = ./mbedtls-2.28.0.uploaded2
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-
    $1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags  https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.28.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/ARMmbed/mbedtls/tags
        $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
        $lastversion = 2.28.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections:
    https://api.github.com/repositories/6687936/tags
    uscan warn: In debian/watch no matching files for watch line
      https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.28.0
        pkg_dir = ./mbedtls-2.28.0
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-
    $1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags  https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.28.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/ARMmbed/mbedtls/tags
        $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
        $lastversion = 2.28.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections:
    https://api.github.com/repositories/6687936/tags
    uscan warn: In debian/watch no matching files for watch line
      https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.28.0
        pkg_dir = ./mbedtls-2.28.0.uploaded
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-
    $1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags  https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.28.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/ARMmbed/mbedtls/tags
        $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
        $lastversion = 2.28.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections:
    https://api.github.com/repositories/6687936/tags
    uscan warn: In debian/watch no matching files for watch line
      https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.16.9
        pkg_dir = ./mbedtls-2.16.9-patches
    uscan debug: parse line opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls-$1\.tar\.gz/ https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian
    uupdate
    uscan info: opts: filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls- $1\.tar\.gz/
    uscan info: line: https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian
    uupdate
    uscan info: Parsing filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls- $1\.tar\.gz/
    uscan info: line: https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian
    uupdate
    uscan debug: $self->{'pgpmode'}=default, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.16.9
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.16.9
    uscan debug: watch file has:
        $base        = https://github.com/ARMmbed/mbedtls/tags
        $filepattern = .*/v?(\d\S+)\.tar\.gz
        $lastversion = 2.16.9
        $action      = uupdate
        mode         = http
        pgpmode      = default
        versionmode  = newer
        $site        = https://github.com
        $basedir     = /ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://github.com/ARMmbed/mbedtls/tags
    uscan info: redirections: https://github.com/Mbed-TLS/mbedtls/tags
    uscan info: Matching pattern:
      
    (?:(?:https://github.com)?\/ARMmbed\/mbedtls\/)?.*/v?(\d\S+)\.tar\.gz  https\:\/\/github\.com\/Mbed\-TLS\/mbedtls\/.*/v?(\d\S+)\.tar\.gz
    uscan debug: Resolving urls with query part unimplemented
    uscan info: Found the following matching hrefs on the web page
    (newest first):
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz (
    3.5.0) index=3.5.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz (
    3.5.0) index=3.5.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz (
    3.5.0) index=3.5.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz (
    3.4.1) index=3.4.1-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz (
    3.4.1) index=3.4.1-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz (
    3.4.1) index=3.4.1-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz (
    3.4.0) index=3.4.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz (
    3.4.0) index=3.4.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz (
    3.4.0) index=3.4.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz  (2.28.5) index=2.28.5-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz  (2.28.5) index=2.28.5-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz  (2.28.5) index=2.28.5-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz  (2.28.4) index=2.28.4-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz  (2.28.4) index=2.28.4-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz  (2.28.4) index=2.28.4-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz  (2.28.3) index=2.28.3-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz  (2.28.3) index=2.28.3-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz  (2.28.3) index=2.28.3-1
    uscan info: Looking at $base =
    https://github.com/ARMmbed/mbedtls/tags with
        $filepattern = .*/v?(\d\S+)\.tar\.gz found
        $newfile     = https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
        $newversion  = 3.5.0
        $lastversion = 2.16.9
    uscan debug: line: get_upstream_url()
    uscan info: Matching target for downloadurlmangle: https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan info: Upstream URL(+tag) to download is identified as    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: line: get_newfile_base()
    uscan info: Matching target for filenamemangle: https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: safe_replace input="https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.t
    ar.gz"
    uscan debug: safe_replace with regexp=".+\/v?(\d\S+)\.tar\.gz", replacement="mbedtls-$1\.tar\.gz", and flags=""
    uscan debug: After filenamemangle: mbedtls-3.5.0.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: mbedtls- 3.5.0.tar.gz
    uscan debug: line: cmp_versions()
    Newest version of mbedtls on remote site is 3.5.0, local version is
    2.16.9
    Newer package available from:
            => https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: line: download_file_and_sig()
    uscan die: Already downloaded a file named mbedtls-3.5.0.tar.gz: use filenamemangle to avoid this [Devscripts::Uscan::WatchLine: 1241] at /usr/share/perl5/Devscripts/Uscan/Output.pm line 77

    TIA

    Wookey

    Hi,

    First change last line ending from:

    v(@ANY_VERSION@) debian uupdate

    to:

    v?@ANY_VERSION@ debian uupdate

    and check results. Would look deeper but am travelling currently.

    Regards

    Phil

    --
    Playing the game for the games sake.

    * Debian Maintainer

    Web:

    * Debian Wiki: https://wiki.debian.org/PhilWyett
    * Website: https://kathenas.org

    Social:

    * Twitter: kathenasorg
    * Instagram: kathenasorg



    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEcKCsRax3nv6E9jrtckqptS8CTIsFAmVAiSoACgkQckqptS8C TItE3Q//dq8JXy8uei0I8XN7+2FR2P8n6Ict0yjHPrqHmVwaGzw01OPT5AlcQepM 8kLRn02GpJUsIR2HirxPmZbro4DAKRlMwh2La0DQWPjKOY6eKOA7N6p1SX720fJ5 SotekW4U2tWacu6S9Lj9tgcgL2HmiVZSVc+vkj+cWZlRM6YOb4gO3v2buU5tMpdD ZnExfMEJuGvHonKHwMoH+AwDRQR8f864SCVnYa88dAbw7vvXWZ2CquDkY6liyVOD TJQps3b+AhIq4qjg6ST+aYG7FvYU6gtVBvtAGzteXeSyrLganDE23SNbd3oAfh7Z RPJBN7HdYeqBvqDiVoVeqxl7PtI37pCnBc4TXmTzo7rErW1eAIUkx3WO4T0ijl8o x/1XiG1qIXl3LU753YKK2oZZOwXPqR4BFJY7ztVhVN6L3kSafLL6jISsio848HJj 2W1Z7TRhUoVF3fnQl4PR22P0lrM4U1XZfVIfMdLzq5SgvzNH85c2WQq0BedzjynG dhxBm29UfmIOR1eRz6+JViQj7FQSIIfFmguw4PdIVGW/2zqmzrifOnH8KuQx7rWt V2oa3dHQYKjjOKJ9qX3Gsrji8w9+mxMbgjTt+/pL8G1+z+oR532gRQ9Pvk6tGNZQ 61jEUO3m/ErpyzJ90m1AVOGhxUEIk+3SVMjdL
  • From Wookey@21:1/5 to Phil Wyett on Tue Oct 31 13:30:01 2023
    On 2023-10-31 04:57 +0000, Phil Wyett wrote:
    On Tue, 2023-10-31 at 04:23 +0000, Wookey wrote:
    uscan is doing something very strange with version numbers and I
    don't understand what's going on.

    However, whilst it now finds the current v3.5.0 it insists that the
    version number is 3.5.0.3.5.0
    So it downloads mbedtls-3.5.0.tar.gz but symlinks it as mbedtls_3.5.0.3.5.0.orig.tar.gz
    and then proceeds to put 3.5.0.3.5.0 for the version everywhere,
    which is clearly wrong.

    This is my watch file:
    version=4
    opts="searchmode=plain, \
      filenamemangle=s%v?@ANY_VERSION@%mbedtls-$1\.tar\.gz%, \
      pgpmode=none" \
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags \ https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v(@ANY_VERSION@)
     debian uupdate

    First change last line ending from:
    v(@ANY_VERSION@) debian uupdate
    to:
    v?@ANY_VERSION@ debian uupdate

    and check results.

    OK. And that indeed fixes the problem. Thank you sir!

    But why? I thought brackets in regexes (this is a regex, right?) were
    just for saving matches into parameters. Why does it make the version number double-up in this case?

    (I see the brackets are only there because I changed this from an
    earlier version. They are not in the modern example for Github on the
    wiki any more)

    Wookey
    --
    Principal hats: Debian, Wookware, ARM
    http://wookware.org/

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEER4nvI8Pe/wVWh5yq+4YyUahvnkcFAmVA8okACgkQ+4YyUahv nkdh6Q//f0BDhhWHWU8vuE71C7dhLKEDWj8W/LIDDd/6+yjzMieZevB5ECpXTSGd 88WsJXIHU3vqnnp4pw6s0hl4RCLI/9+VLa4/2A5n6eHD2Yb8bEgiiWbpYWIL/uSR U7wrU4uIeki7BNZ/z1apHG8BZPB1HK02I/VJ0fHKyiN6Q/5NrqIOLGskMBePHz3x i1ItumhcS2KHrO2sRGeXZl2Cb+Hh+YYGgIKVZcXJR8I9YJbPfOnXi/j1lUCRYfJC Dgtojv2KSq/plvTpJR7bWkVnqV6uav5eY+o9nQQj5W4dawWyHx9igmFJ1wm4MeMT hPeHvRiORHzEpWAhWr3GOknpGXwCHtEwRKH98Lp1JQ4ze61cK2LsK+0BKvIbW0Md LyoQixkIV/A7tHrXDZpuX2yrlAm+0xJiQp9P+JeEFg0m1mOezBNZct/Fj+pVo18Q fndLp1tGnNsZa7kqN34XQ5MCc2aLqj0545bym/Sn0Fml0oN3X+O3cH9I0cEHMpA7 p8DhhgL+Ojh6tqLo5868L8Pr8pzj9Iqt0O3RLqhE0oH4y8fXflJrJWSDom4Z6GkO HVJtEgnZ2t9cZu7y2dn1cwBxNSgQZ/nmU7BfKjcGdd2FNETZbdzzcNUNjeyCN51A EIZTYPmt9O6BfCDatRSwQb6bemcJAmWbgMyzxfYDGsZyW8NT1gc=
    =BVKI
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil Wyett@21:1/5 to Phil Wyett on Tue Oct 31 13:40:01 2023
    On Tue, 2023-10-31 at 04:57 +0000, Phil Wyett wrote:
    On Tue, 2023-10-31 at 04:23 +0000, Wookey wrote:
    uscan is doing something very strange with version numbers and I
    don't understand what's going on.

    Is it obvious to anyone else how to make this work?

    The package is mbedtls. Which is on github.

    The existing version was only looking for LTS v2.28.x but that's out
    of date, so I changed it to look for v?@ANY_VERSION@, following
    current
    pattern on https://wiki.debian.org/debian/watch#GitHub

    However, whilst it now finds the current v3.5.0 it insists that the
    version number is 3.5.0.3.5.0
    So it downloads mbedtls-3.5.0.tar.gz but symlinks it as mbedtls_3.5.0.3.5.0.orig.tar.gz
    and then proceeds to put 3.5.0.3.5.0 for the version everywhere,
    which is clearly wrong.

    This is my watch file:
    version=4
    opts="searchmode=plain, \
      filenamemangle=s%v?@ANY_VERSION@%mbedtls-$1\.tar\.gz%, \
      pgpmode=none" \
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags \ https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v(@ANY_VERSION@)
     debian uupdate

    which is based on
    https://wiki.debian.org/debian/watch#GitHub (but using tags)

    below is the uscan --debug log:

    but I think the important bit is:
    scan info: Requesting URL:
       https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    uscan info: Found the following matching hrefs on the web page
    (newest first):
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0  (3.5.0.3.5.0) index=3.5.0.3.5.0-0

    That bit in brackets is where it all seems to go wrong. The correct
    url is pulled out of the page but somehow the version is ascribed incorrectly. What exactly _is_ that number in brackets and how is it derived?

    Anyone got any insight into this? I've been messing with uscan for
    many years and this is the first time I've not been able to work out
    what's going on.

    $ uscan --debug
    uscan info: uscan (version 2.23.4) See uscan(1) for help
    uscan info: Scan watch files in .
    uscan debug: Found ./mbedtls-3.1.0/debian
    uscan debug: Found ./mbedtls-2.16.9-patches/debian
    uscan debug: Found ./mbedtls-2.16.6/debian
    uscan debug: Found ./mbedtls-2.28.0.uploaded2/debian
    uscan debug: Found ./mbedtls-2.16.9/debian
    uscan debug: Found ./mbedtls-2.16.5/debian
    uscan debug: Found ./mbedtls-2.28.0.uploaded/debian
    uscan debug: Found ./mbedtls-2.28.0/debian
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    3.1.0
    uscan info: package="mbedtls" version="3.1.0-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="3.1.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls- 2.16.9-patches
    uscan info: package="mbedtls" version="2.16.9-0.1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.9" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.16.6
    uscan info: Check debian/watch and debian/changelog in ./mbedtls- 2.28.0.uploaded2
    uscan info: package="mbedtls" version="2.28.0-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.16.9
    uscan info: package="mbedtls" version="2.16.9-0.1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.9" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.16.5
    uscan info: package="mbedtls" version="2.16.5-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.16.5" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls- 2.28.0.uploaded
    uscan info: package="mbedtls" version="2.28.0-0.2" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: Check debian/watch and debian/changelog in ./mbedtls-
    2.28.0
    uscan info: package="mbedtls" version="2.28.0-1" (as seen in debian/changelog)
    uscan info: package="mbedtls" version="2.28.0" (no epoch/revision)
    uscan info: ./mbedtls-3.1.0/debian/changelog sets package="mbedtls" version="3.1.0"
    uscan info: ./mbedtls-2.28.0.uploaded2/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.28.0/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.28.0.uploaded/debian/changelog sets package="mbedtls" version="2.28.0"
    uscan info: ./mbedtls-2.16.9-patches/debian/changelog sets package="mbedtls" version="2.16.9"
    uscan info: ./mbedtls-2.16.9/debian/changelog sets package="mbedtls" version="2.16.9"
    uscan info: ./mbedtls-2.16.5/debian/changelog sets package="mbedtls" version="2.16.5"
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 3.1.0
        pkg_dir = ./mbedtls-3.1.0
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls- $1\.tar\.gz%, pgpmode=none" https://api.github.com/repos/Mbed-TLS/mbedtls/tags  https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-
    Z]*)))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s%v?(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))%mbedtls-$1\.tar\.gz%, pgpmode=none
    uscan info: line: https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-
    TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))  debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s%v?(?:[-_]?v?(\d[\-+\.:\~\da-zA- Z]*))%mbedtls-$1\.tar\.gz%
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/Mbed-TLS/mbedtls/tags https://api.github.com/repos/Mbed-
    TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))  debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    3.1.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 3.1.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/Mbed-TLS/mbedtls/tags
        $filepattern = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-
    Z]*)))
        $lastversion = 3.1.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/Mbed-TLS/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/Mbed-TLS/mbedtls/tags
    uscan info: Found the following matching hrefs on the web page
    (newest first):
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0  (3.5.0.3.5.0) index=3.5.0.3.5.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.4.1  (3.4.1.3.4.1) index=3.4.1.3.4.1-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.4.0  (3.4.0.3.4.0) index=3.4.0.3.4.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.3.0  (3.3.0.3.3.0) index=3.3.0.3.3.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.2.1  (3.2.1.3.2.1) index=3.2.1.3.2.1-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.2.0  (3.2.0.3.2.0) index=3.2.0.3.2.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.1.0  (3.1.0.3.1.0) index=3.1.0.3.1.0-0
      
    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.0.0  (3.0.0.3.0.0) index=3.0.0.3.0.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.5  (2.28.5.2.28.5) index=2.28.5.2.28.5-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.4  (2.28.4.2.28.4) index=2.28.4.2.28.4-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.3  (2.28.3.2.28.3) index=2.28.3.2.28.3-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.2  (2.28.2.2.28.2) index=2.28.2.2.28.2-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.1  (2.28.1.2.28.1) index=2.28.1.2.28.1-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.28.0  (2.28.0.2.28.0) index=2.28.0.2.28.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.27.0  (2.27.0.2.27.0) index=2.27.0.2.27.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.26.0  (2.26.0.2.26.0) index=2.26.0.2.26.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.25.0  (2.25.0.2.25.0) index=2.25.0.2.25.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.24.0  (2.24.0.2.24.0) index=2.24.0.2.24.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.23.0  (2.23.0.2.23.0) index=2.23.0.2.23.0-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.12  (2.16.12.2.16.12) index=2.16.12.2.16.12-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.11  (2.16.11.2.16.11) index=2.16.11.2.16.11-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.1
    0
     (2.16.10.2.16.10) index=2.16.10.2.16.10-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.9  (2.16.9.2.16.9) index=2.16.9.2.16.9-0
       https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v2.16.8  (2.16.8.2.16.8) index=2.16.8.2.16.8-0
    uscan info: Looking at $base = https://api.github.com/repos/Mbed-TLS/mbedtls/tags with
        $filepattern = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v((?:[-_]?v?(\d[\-+\.:\~\da-zA-
    Z]*)))
     found
        $newfile     = https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0     $newversion  = 3.5.0.3.5.0
        $lastversion = 3.1.0
    uscan debug: line: get_upstream_url()
    uscan info: Matching target for downloadurlmangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0 uscan info: Upstream URL(+tag) to download is identified as    https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0 uscan debug: line: get_newfile_base()
    uscan info: Matching target for filenamemangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0 uscan debug: safe_replace input="https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tag s/v3.5.0"
    uscan debug: safe_replace with regexp="v?(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))", replacement="mbedtls-$1\.tar\.gz", and flags=""
    uscan debug: After filenamemangle: https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/mbedtls-3.5.0.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: mbedtls- 3.5.0.tar.gz
    uscan debug: line: cmp_versions()
    Newest version of mbedtls on remote site is 3.5.0.3.5.0, local
    version is 3.1.0
    Newer package available from:
            => https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v3.5.0 uscan debug: line: download_file_and_sig()
    uscan info: Not downloading, using existing file: mbedtls-
    3.5.0.tar.gz
    uscan info: Missing OpenPGP signature.
    uscan info: New orig.tar.* tarball version (oversionmangled):
    3.5.0.3.5.0
    uscan debug: line: mkorigtargz()
    uscan info: Launch mk-origtargz with options:
       --package mbedtls --version 3.5.0.3.5.0 --compression default -- directory .. --copyright-file debian/copyright ../mbedtls-
    3.5.0.tar.gz
    Successfully symlinked ../mbedtls-3.5.0.tar.gz to ../mbedtls_3.5.0.3.5.0.orig.tar.gz.
    uscan info: New orig.tar.* tarball version (after mk-origtargz): 3.5.0.3.5.0
    uupdate: PACKAGE     = "mbedtls" is in the top of debian/changelog uupdate: VERSION     = "3.1.0-1" is in the top of debian/changelog uupdate: EPOCH       = "" is epoch part of $VERSION
    uupdate: SVERSION    = "3.1.0-1" is w/o-epoch part of $VERSION
    uupdate: UVERSION    = "3.1.0" the upstream portion w/o-epoch of $VERSION
    uupdate: -> Copy to      mbedtls_3.5.0.3.5.0-1.debian.tar.xz
    uscan info: Executing user specified script:
       uupdate -f --verbose --upstream-version 3.5.0.3.5.0
    uupdate: Old: <epoch:><version>-<revision> = 3.1.0-1
    uupdate: Old: <epoch:>                     =
    uupdate: Old:         <version>-<revision> = 3.1.0-1
    uupdate: Old:         <version>            = 3.1.
    0
    uupdate: New:         <version>            = 3.5.0.3.5.0 dpkg-source: info: extracting mbedtls in mbedtls-3.5.0.3.5.0
    dpkg-source: info: unpacking mbedtls_3.5.0.3.5.0.orig.tar.gz
    dpkg-source: info: unpacking mbedtls_3.5.0.3.5.0-1.debian.tar.xz
    uupdate: Remember: Your current directory is changed back to the old
    source tree!
    uupdate: Do a "cd ../mbedtls-3.5.0.3.5.0" to see the new source tree
    and
        edit it to be nice Debianized source.
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.28.0
        pkg_dir = ./mbedtls-2.28.0.uploaded2
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls- $1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags  https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-
    +\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.28.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/ARMmbed/mbedtls/tags
        $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-
    +\.:\~\da-zA-Z]*)))
        $lastversion = 2.28.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections:
    https://api.github.com/repositories/6687936/tags
    uscan warn: In debian/watch no matching files for watch line
      https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.28.0
        pkg_dir = ./mbedtls-2.28.0
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls- $1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags  https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-
    +\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.28.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/ARMmbed/mbedtls/tags
        $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-
    +\.:\~\da-zA-Z]*)))
        $lastversion = 2.28.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections:
    https://api.github.com/repositories/6687936/tags
    uscan warn: In debian/watch no matching files for watch line
      https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v(2\.28\.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
     debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.28.0
        pkg_dir = ./mbedtls-2.28.0.uploaded
    uscan debug: parse line opts="searchmode=plain, filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls- $1\.tar\.gz/, pgpmode=none" https://api.github.com/repos/ARMmbed/mbedtls/tags  https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-
    zA-Z]*))
     debian uupdate
    uscan info: opts: searchmode=plain, filenamemangle=s/.*v(?:[- _]?v?(\d[\-+\.:\~\da-zA-Z]*))/mbedtls-$1\.tar\.gz/, pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate
    uscan info: Parsing searchmode=plain
    uscan info: Parsing  filenamemangle=s/.*v(?:[-_]?v?(\d[\-+\.:\~\da- zA-Z]*))/mbedtls-$1\.tar\.gz/
    uscan info: Parsing  pgpmode=none
    uscan info: line: https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate
    uscan debug: $self->{'pgpmode'}=none, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.28.0
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.28.0
    uscan debug: watch file has:
        $base        = https://api.github.com/repos/ARMmbed/mbedtls/tags
        $filepattern = https://api.github.com/repos/ARMmbed/mbedtls/tarball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-
    zA-Z]*))
        $lastversion = 2.28.0
        $action      = uupdate
        mode         = http
        pgpmode      = none
        versionmode  = newer
        $site        = https://api.github.com
        $basedir     = /repos/ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://api.github.com/repos/ARMmbed/mbedtls/tags
    uscan info: redirections:
    https://api.github.com/repositories/6687936/tags
    uscan warn: In debian/watch no matching files for watch line
      https://api.github.com/repos/ARMmbed/mbedtls/tags https://api.github.com/repos/ARMmbed/mbedtls/t
    arball/refs/tags/v2.28.(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))
     debian uupdate [Devscripts::Uscan::http: 135]
    uscan info: Process watch file at: debian/watch
        package = mbedtls
        version = 2.16.9
        pkg_dir = ./mbedtls-2.16.9-patches
    uscan debug: parse line opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls-$1\.tar\.gz/ https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian uupdate
    uscan info: opts: filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls- $1\.tar\.gz/
    uscan info: line: https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian uupdate
    uscan info: Parsing filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/mbedtls- $1\.tar\.gz/
    uscan info: line: https://github.com/ARMmbed/mbedtls/tags .*/v?(\d\S+)\.tar\.gz debian uupdate
    uscan debug: $self->{'pgpmode'}=default, $self-
    {'pgpsigurlmangle'}=undef
    uscan info: Last orig.tar.* tarball version (from debian/changelog):
    2.16.9
    uscan info: Last orig.tar.* tarball version (dversionmangled): 2.16.9
    uscan debug: watch file has:
        $base        = https://github.com/ARMmbed/mbedtls/tags
        $filepattern = .*/v?(\d\S+)\.tar\.gz
        $lastversion = 2.16.9
        $action      = uupdate
        mode         = http
        pgpmode      = default
        versionmode  = newer
        $site        = https://github.com
        $basedir     = /ARMmbed/mbedtls/
    uscan debug: line: search()
    uscan info: Requesting URL:
       https://github.com/ARMmbed/mbedtls/tags
    uscan info: redirections: https://github.com/Mbed-TLS/mbedtls/tags
    uscan info: Matching pattern:
      
    (?:(?:https://github.com)?\/ARMmbed\/mbedtls\/)?.*/v?(\d\S+)\.tar\.gz  https\:\/\/github\.com\/Mbed\-TLS\/mbedtls\/.*/v?(\d\S+)\.tar\.gz
    uscan debug: Resolving urls with query part unimplemented
    uscan info: Found the following matching hrefs on the web page
    (newest first):
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz ( 3.5.0) index=3.5.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz ( 3.5.0) index=3.5.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz ( 3.5.0) index=3.5.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz ( 3.4.1) index=3.4.1-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz ( 3.4.1) index=3.4.1-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.1.tar.gz ( 3.4.1) index=3.4.1-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz ( 3.4.0) index=3.4.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz ( 3.4.0) index=3.4.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.4.0.tar.gz ( 3.4.0) index=3.4.0-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz  (2.28.5) index=2.28.5-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz  (2.28.5) index=2.28.5-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.5.tar.gz  (2.28.5) index=2.28.5-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz  (2.28.4) index=2.28.4-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz  (2.28.4) index=2.28.4-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.4.tar.gz  (2.28.4) index=2.28.4-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz  (2.28.3) index=2.28.3-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz  (2.28.3) index=2.28.3-1
      
    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v2.28.3.tar.gz  (2.28.3) index=2.28.3-1
    uscan info: Looking at $base = https://github.com/ARMmbed/mbedtls/tags with
        $filepattern = .*/v?(\d\S+)\.tar\.gz found
        $newfile     = https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
        $newversion  = 3.5.0
        $lastversion = 2.16.9
    uscan debug: line: get_upstream_url()
    uscan info: Matching target for downloadurlmangle: https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan info: Upstream URL(+tag) to download is identified as    https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: line: get_newfile_base()
    uscan info: Matching target for filenamemangle: https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: safe_replace input="https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.t ar.gz"
    uscan debug: safe_replace with regexp=".+\/v?(\d\S+)\.tar\.gz", replacement="mbedtls-$1\.tar\.gz", and flags=""
    uscan debug: After filenamemangle: mbedtls-3.5.0.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: mbedtls- 3.5.0.tar.gz
    uscan debug: line: cmp_versions()
    Newest version of mbedtls on remote site is 3.5.0, local version is
    2.16.9
    Newer package available from:
            => https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.0.tar.gz
    uscan debug: line: download_file_and_sig()
    uscan die: Already downloaded a file named mbedtls-3.5.0.tar.gz: use filenamemangle to avoid this [Devscripts::Uscan::WatchLine: 1241] at /usr/share/perl5/Devscripts/Uscan/Output.pm line 77

    TIA

    Wookey

    Hi,

    First change last line ending from:

    v(@ANY_VERSION@) debian uupdate

    to:

    v?@ANY_VERSION@ debian uupdate

    and check results. Would look deeper but am travelling currently.

    Regards

    Phil


    Hi,

    Had another quick look and below works well here. Others may have input.

    version=4
    opts="searchmode=plain, \
    filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1\.tar\.gz%, \
    pgpmode=none" \
    https://api.github.com/repos/Mbed-TLS/mbedtls/tags \ https://api.github.com/repos/Mbed-TLS/mbedtls/tarball/refs/tags/v?@ANY_VERSION@ debian uupdate

    Regards

    Phil

    --
    Playing the game for the games sake.

    * Debian Maintainer

    Web:

    * Debian Wiki: https://wiki.debian.org/PhilWyett
    * Website: https://kathenas.org

    Social:

    * Twitter: kathenasorg
    * Instagram: kathenasorg



    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEcKCsRax3nv6E9jrtckqptS8CTIsFAmVA8nMACgkQckqptS8C TIvMHA/+N60qCxVJX8rs8oq8CcWS11ixcHTt8djXGmAgNFW721mT7GKXParaz1Yd T2jmzjFiWBBb28nIaqJr+r/0P6tE8pm0VMPa4Oqlob3OJOa1Ae2ROTgjARfRJnro mlOlvoIGX/Twqdrim4aMdCkHG9RODnkQyJX6PhrsQTy2lSQzf1G1uS7NDejXI+ko p9dqJs0MG2mVYvTrOiyZ+tDdzEMCsti5lDjsn7kUrZ2bMw56gkyBbI5Y1AClTSdb EdxqIYf8LZI7NMTm9HrXrUnsSz22DsuoXmAEUz5AzRTP/bttyVQ1QNvqP2/sLr+4 zP5O878PzxLzL7EuCY+wH5NHK3dny3WlfmpTDsWnVQ4goC5P1GbKCU1qOhtX6xjy hoIqI5mO8A78aHDQMTxf0KZ5RAOyTR9ZJYB2Maan5FCXEadIkLWFSHKYvEd2HBgy 8JCI9iesGwkSNfkFUAW6DSAk//15DcexBhSkDP7ijillw/VGshr6Cf98ABvZemtw +H+x06Tm4yJl0wtwq3vVcmBiCptPskIgGgA5r/hVeJuw4UxZI+ObFFZIISBEElSx 0nqEPvXu13Sfk4QXFwk7Rreure8A+kB+yV9y4GlGZgSpeMjy5P3Tmku1ytRKj0CD Lw+whp2rQWjm6YjYvInsoSNDuOnLcayNo9HWt
  • From Mattia Rizzolo@21:1/5 to Wookey on Tue Oct 31 20:30:01 2023
    On Tue, Oct 31, 2023 at 12:26:54PM +0000, Wookey wrote:
    But why? I thought brackets in regexes (this is a regex, right?) were
    just for saving matches into parameters. Why does it make the version number double-up in this case?

    I don't know how regexes work in perl, but the thing is that
    @ANY_VERSION@ already contains ( ), so you are effectively duplicating
    them. From your log:
    v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))

    So I wouldn't be surprised that those brackets where causing some double capturing or something similar, or at least this would be my
    speculation.

    BTW, @ANY_VERSION@ also already contains a v? in there, so you can do
    away with your own.

    --
    regards,
    Mattia Rizzolo

    GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
    More about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'`
    Debian QA page: https://qa.debian.org/developer.php?login=mattia `-

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAmVBVCEACgkQCBa54Yx2 K62psRAAna83nzdRpn2YlNkMw+goaUaZqCnZo95RSovEl+88aQ1lQ6HFebQBv0V0 6w/vww3Dnr63k7AEhk2jsoPmNimF8Afvh01j/I1d6iQETF1dGFN4VZ6OrLDBsNNf kk5S0HajplJeIJU/V+EE/SEm+0QEdqzyRTQMqhFBLvWwrmZvhY8NLm685nja5dSa fCX+ZeJ/Q7wrXBc593/3gTIQwAQEzMEyTsboHDJ/rParXksqP6fJBOcNLRRo66Xb QMTroWBrPkhsd9tNg05eVv9jRAHwbX3kKITjwrJ4mPU00rUHt/EYIGwe74v58GD+ hCQXU4ir8ZJWa6vcHeHuwyEz3mF1yfmSTrPk3MpLed7kMdH6RQDHcHqsfgOa1oBq 6Mtzn6zq9DWqIcghlUC7VtMSTeSuP3kbVK0bV+ig2Y0YmbPi6u8GYhobXcX/2DyH /UwZx8cLCHr62VL5ecNEKBnriRIv8Nf1C9U0s/6Wu5oXukwsOUFtRfsy6ihpNduE pj4lQP8eicb92opOrSgvRxeA6IyohDtwx1YVFtQh1QJczKSbUEA
  • From Carles Pina i Estany@21:1/5 to Mattia Rizzolo on Tue Oct 31 21:13:35 2023
    Hi,

    On 31 Oct 2023 at 20:23:15, Mattia Rizzolo wrote:
    On Tue, Oct 31, 2023 at 12:26:54PM +0000, Wookey wrote:

    [...]

    BTW, @ANY_VERSION@ also already contains a v? in there, so you can do
    away with your own.

    In bookworm's uscan yes, in bullseye's no :-( which is used by some
    servers in debian. I learnt it here: https://lists.debian.org/debian-qa/2023/10/msg00010.html

    Causing the error in:
    https://qa.debian.org/cgi-bin/watch?pkg=python-ping3

    I reproduced the problem in bullseye, etc.

    Cheers,

    --
    Carles Pina i Estany
    https://carles.pina.cat

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEth6/Zob9uGYomaJ+qAKIT2ClX4EFAmVBX+8ACgkQqAKIT2Cl X4Gyfg/+OwGVnL5+kHUP29ZMN0Q8NDnfIiABY/CFuMwMGFwN42ePFPqVf/5Ph6d0 UOZPbgcAMjl492dZ+jcmgUqXZBe8q+O5C0tucqaeG9qXgJESlRxTR/vSbG20ooxo Ez02x7zYkxR57M8HkLSffM09hK9tfODE5xYLzL6B3QxzHebLmXfyuHqX1yk+x+0T 3TfW5Qy1/JFOfq8I2vbQT56KYhAnfe5GHpQhso8IPJQo2IL4x74JBqo0WtJmva4R 5/dEk47n68TKlbHcCOQ93GR2rmRL0k3QeoQWkXWjNYQa9VsYKoxQecOQpUajvLiU PeuTvNVCdNQYvrBluwzEks17OKB5chXjPkKzZ1aw29WeVrC5JdSGuXclOMOjKo41 TVkO40rAFiLJiP2GyxkEQySZkvXy5hGNf5SD53fh3Zp79wXOyYSsvn209lckKU/G EqTUkkIkJS4D2i/VVyFV8e57picSuZcRYQEvh8kouq/u6jCRj7ngDsoS1shBwXpI 7a0f+nLK5sgyPQVa/AfGZHa3wUQsSVFxCm+2KfSeL2Abw2S02wMEshIteuAEnaYb KMIVZyN6fwqZAV0MwWpObJYCjlSPO4qzwyv0b+HV25jTq8p8RhOihfSDeV2OT5HS Vq6bn+T9dmi3kz/fpS4oGkL9jepq8aAmelVPpz1Wgov9azuzeFc=
    =sTB/
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • Who's Online

  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 546
    Nodes: 16 (2 / 14)
    Uptime: 150:43:13
    Calls: 10,383
    Files: 14,054
    Messages: 6,417,791

© >>> Magnum BBS <<<, 2025