#1006114 uscan: returns 1 even when a newer version was found

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Mattia Rizzolo
Date:
2022-12-30 15:54:03 UTC
Severity:
normal
#1006114#3
Date:
2022-02-19 12:22:19 UTC
From:
To:
For some reason, this seems to return the wrong code.  Also, I don't see
any other error.
I reckon this might be due to the mode=previous/next used for the pgp
signature coupled with --report.

This is from inkscape/1.1.1-3 as found in the archive (or in git).

mattia@warren ~/devel/debian/inkscape/inkscape (git)-[master] % uscan --report
uscan info: uscan (version 2.22.1) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="inkscape" version="1.1.1-3" (as seen in debian/changelog)
uscan info: package="inkscape" version="1.1.1" (no epoch/revision)
uscan info: ./debian/changelog sets package="inkscape" version="1.1.1"
uscan info: Found upstream signing keyring: debian/upstream/signing-key.asc
uscan info: Process watch file at: debian/watch
    package = inkscape
    version = 1.1.1
    pkg_dir = .
uscan info: Set passive mode: 1
uscan info: opts: pgpmode=next,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
uscan info: line: https://inkscape.org/release/all/source/archive/?pre=0 (?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Parsing pgpmode=next
uscan info: Parsing uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
uscan info: line: https://inkscape.org/release/all/source/archive/?pre=0 (?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 1.1.1
uscan info: Last orig.tar.* tarball version (dversionmangled): 1.1.1
uscan info: Requesting URL:
https://inkscape.org/release/all/source/archive/?pre=0
uscan info: Matching pattern:
   (?:(?:https://inkscape.org)?\/release\/all\/source\/archive\/)?(?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Found the following matching hrefs on the web page (newest first):
https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz (1.1.2) index=1.1.2-4
https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz (1.1.2) index=1.1.2-4
https://inkscape.org/gallery/item/29255/inkscape-1.1.1.tar.xz (1.1.1) index=1.1.1-4
https://inkscape.org/gallery/item/29255/inkscape-1.1.1.tar.xz (1.1.1) index=1.1.1-4
https://inkscape.org/gallery/item/26932/inkscape-1.1.tar.xz (1.1) index=1.1-4
https://inkscape.org/gallery/item/26932/inkscape-1.1.tar.xz (1.1) index=1.1-4
https://inkscape.org/gallery/item/23820/inkscape-1.0.2.tar.xz (1.0.2) index=1.0.2-4
https://inkscape.org/gallery/item/23820/inkscape-1.0.2.tar.xz (1.0.2) index=1.0.2-4
https://inkscape.org/gallery/item/21571/inkscape-1.0.1.tar.xz (1.0.1) index=1.0.1-4
https://inkscape.org/gallery/item/21571/inkscape-1.0.1.tar.xz (1.0.1) index=1.0.1-4
https://inkscape.org/gallery/item/18460/inkscape-1.0.tar.xz (1.0) index=1.0-4
https://inkscape.org/gallery/item/18460/inkscape-1.0.tar.xz (1.0) index=1.0-4
https://inkscape.org/gallery/item/18051/inkscape-0.92.5.tar.bz2 (0.92.5) index=0.92.5-2
https://inkscape.org/gallery/item/18051/inkscape-0.92.5.tar.bz2 (0.92.5) index=0.92.5-2
https://inkscape.org/gallery/item/13330/inkscape-0.92.4.tar.bz2 (0.92.4) index=0.92.4-2
https://inkscape.org/gallery/item/13330/inkscape-0.92.4.tar.bz2 (0.92.4) index=0.92.4-2
https://inkscape.org/gallery/item/12187/inkscape-0.92.3.tar.bz2 (0.92.3) index=0.92.3-2
https://inkscape.org/gallery/item/12187/inkscape-0.92.3.tar.bz2 (0.92.3) index=0.92.3-2
https://inkscape.org/gallery/item/11254/inkscape-0.92.2.tar.bz2 (0.92.2) index=0.92.2-2
https://inkscape.org/gallery/item/11254/inkscape-0.92.2.tar.bz2 (0.92.2) index=0.92.2-2
https://inkscape.org/gallery/item/10682/inkscape-0.92.1.tar.bz2 (0.92.1) index=0.92.1-2
https://inkscape.org/gallery/item/10682/inkscape-0.92.1.tar.bz2 (0.92.1) index=0.92.1-2
https://inkscape.org/gallery/item/10552/inkscape-0.92.0.tar.bz2 (0.92.0) index=0.92.0-2
https://inkscape.org/gallery/item/10552/inkscape-0.92.0.tar.bz2 (0.92.0) index=0.92.0-2
https://inkscape.org/gallery/item/3860/inkscape-0.91.tar.bz2 (0.91) index=0.91-2
https://inkscape.org/gallery/item/3860/inkscape-0.91.tar.bz2 (0.91) index=0.91-2
https://inkscape.org/gallery/item/3854/inkscape-0.91.tar.gz (0.91) index=0.91-1
https://inkscape.org/gallery/item/3854/inkscape-0.91.tar.gz (0.91) index=0.91-1
https://inkscape.org/gallery/item/3836/inkscape-0.91.zip (0.91) index=0.91-0
https://inkscape.org/gallery/item/3836/inkscape-0.91.zip (0.91) index=0.91-0
https://inkscape.org/gallery/item/8416/inkscape-0.48.5.tar.bz2 (0.48.5) index=0.48.5-2
https://inkscape.org/gallery/item/8416/inkscape-0.48.5.tar.bz2 (0.48.5) index=0.48.5-2
https://inkscape.org/gallery/item/8411/inkscape-0.48.5.tar.gz (0.48.5) index=0.48.5-1
https://inkscape.org/gallery/item/8411/inkscape-0.48.5.tar.gz (0.48.5) index=0.48.5-1
https://inkscape.org/gallery/item/8421/inkscape-0.48.5.zip (0.48.5) index=0.48.5-0
https://inkscape.org/gallery/item/8421/inkscape-0.48.5.zip (0.48.5) index=0.48.5-0
https://inkscape.org/gallery/item/8536/inkscape-0.48.4.tar.bz2 (0.48.4) index=0.48.4-2
https://inkscape.org/gallery/item/8536/inkscape-0.48.4.tar.bz2 (0.48.4) index=0.48.4-2
https://inkscape.org/gallery/item/8531/inkscape-0.48.4.tar.gz (0.48.4) index=0.48.4-1
https://inkscape.org/gallery/item/8531/inkscape-0.48.4.tar.gz (0.48.4) index=0.48.4-1
https://inkscape.org/gallery/item/8526/inkscape-0.48.4.zip (0.48.4) index=0.48.4-0
https://inkscape.org/gallery/item/8526/inkscape-0.48.4.zip (0.48.4) index=0.48.4-0
https://inkscape.org/gallery/item/8571/inkscape-0.48.3.1.tar.bz2 (0.48.3.1) index=0.48.3.1-2
https://inkscape.org/gallery/item/8571/inkscape-0.48.3.1.tar.bz2 (0.48.3.1) index=0.48.3.1-2
https://inkscape.org/gallery/item/8566/inkscape-0.48.3.1.tar.gz (0.48.3.1) index=0.48.3.1-1
https://inkscape.org/gallery/item/8566/inkscape-0.48.3.1.tar.gz (0.48.3.1) index=0.48.3.1-1
https://inkscape.org/gallery/item/8561/inkscape-0.48.3.1.zip (0.48.3.1) index=0.48.3.1-0
https://inkscape.org/gallery/item/8561/inkscape-0.48.3.1.zip (0.48.3.1) index=0.48.3.1-0
https://inkscape.org/gallery/item/8586/inkscape-0.48.3.tar.bz2 (0.48.3) index=0.48.3-2
https://inkscape.org/gallery/item/8586/inkscape-0.48.3.tar.bz2 (0.48.3) index=0.48.3-2
https://inkscape.org/gallery/item/8581/inkscape-0.48.3.tar.gz (0.48.3) index=0.48.3-1
https://inkscape.org/gallery/item/8581/inkscape-0.48.3.tar.gz (0.48.3) index=0.48.3-1
https://inkscape.org/gallery/item/8576/inkscape-0.48.3.zip (0.48.3) index=0.48.3-0
https://inkscape.org/gallery/item/8576/inkscape-0.48.3.zip (0.48.3) index=0.48.3-0
https://inkscape.org/gallery/item/7686/inkscape-0.48.2.tar.bz2 (0.48.2) index=0.48.2-2
https://inkscape.org/gallery/item/7686/inkscape-0.48.2.tar.bz2 (0.48.2) index=0.48.2-2
https://inkscape.org/gallery/item/7691/inkscape-0.48.2.tar.gz (0.48.2) index=0.48.2-1
https://inkscape.org/gallery/item/7691/inkscape-0.48.2.tar.gz (0.48.2) index=0.48.2-1
https://inkscape.org/gallery/item/7696/inkscape-0.48.2.zip (0.48.2) index=0.48.2-0
https://inkscape.org/gallery/item/7696/inkscape-0.48.2.zip (0.48.2) index=0.48.2-0
https://inkscape.org/gallery/item/7811/inkscape-0.48.1.tar.bz2 (0.48.1) index=0.48.1-2
https://inkscape.org/gallery/item/7811/inkscape-0.48.1.tar.bz2 (0.48.1) index=0.48.1-2
https://inkscape.org/gallery/item/7806/inkscape-0.48.1.tar.gz (0.48.1) index=0.48.1-1
https://inkscape.org/gallery/item/7806/inkscape-0.48.1.tar.gz (0.48.1) index=0.48.1-1
https://inkscape.org/gallery/item/7801/inkscape-0.48.1.zip (0.48.1) index=0.48.1-0
https://inkscape.org/gallery/item/7801/inkscape-0.48.1.zip (0.48.1) index=0.48.1-0
https://inkscape.org/gallery/item/7731/inkscape-0.48.0.tar.bz2 (0.48.0) index=0.48.0-2
https://inkscape.org/gallery/item/7731/inkscape-0.48.0.tar.bz2 (0.48.0) index=0.48.0-2
https://inkscape.org/gallery/item/7736/inkscape-0.48.0.tar.gz (0.48.0) index=0.48.0-1
https://inkscape.org/gallery/item/7736/inkscape-0.48.0.tar.gz (0.48.0) index=0.48.0-1
https://inkscape.org/gallery/item/7741/inkscape-0.48.0.zip (0.48.0) index=0.48.0-0
https://inkscape.org/gallery/item/7741/inkscape-0.48.0.zip (0.48.0) index=0.48.0-0
https://inkscape.org/gallery/item/8836/inkscape-0.47.tar.bz2 (0.47) index=0.47-2
https://inkscape.org/gallery/item/8836/inkscape-0.47.tar.bz2 (0.47) index=0.47-2
https://inkscape.org/gallery/item/8831/inkscape-0.47.tar.gz (0.47) index=0.47-1
https://inkscape.org/gallery/item/8831/inkscape-0.47.tar.gz (0.47) index=0.47-1
https://inkscape.org/gallery/item/8826/inkscape-0.47.zip (0.47) index=0.47-0
https://inkscape.org/gallery/item/8826/inkscape-0.47.zip (0.47) index=0.47-0
https://inkscape.org/gallery/item/8716/inkscape-0.46.tar.bz2 (0.46) index=0.46-2
https://inkscape.org/gallery/item/8716/inkscape-0.46.tar.bz2 (0.46) index=0.46-2
https://inkscape.org/gallery/item/8711/inkscape-0.46.tar.gz (0.46) index=0.46-1
https://inkscape.org/gallery/item/8711/inkscape-0.46.tar.gz (0.46) index=0.46-1
https://inkscape.org/gallery/item/8701/inkscape-0.46.zip (0.46) index=0.46-0
https://inkscape.org/gallery/item/8701/inkscape-0.46.zip (0.46) index=0.46-0
https://inkscape.org/gallery/item/7926/inkscape-0.45.1.tar.gz (0.45.1) index=0.45.1-1
https://inkscape.org/gallery/item/7926/inkscape-0.45.1.tar.gz (0.45.1) index=0.45.1-1
https://inkscape.org/gallery/item/8936/inkscape-0.44.1.tar.gz (0.44.1) index=0.44.1-1
https://inkscape.org/gallery/item/8936/inkscape-0.44.1.tar.gz (0.44.1) index=0.44.1-1
https://inkscape.org/gallery/item/8081/inkscape-0.44.tar.bz2 (0.44) index=0.44-2
https://inkscape.org/gallery/item/8081/inkscape-0.44.tar.bz2 (0.44) index=0.44-2
https://inkscape.org/gallery/item/8091/inkscape-0.44.tar.gz (0.44) index=0.44-1
https://inkscape.org/gallery/item/8091/inkscape-0.44.tar.gz (0.44) index=0.44-1
https://inkscape.org/gallery/item/9161/inkscape-0.43.tar.bz2 (0.43) index=0.43-2
https://inkscape.org/gallery/item/9161/inkscape-0.43.tar.bz2 (0.43) index=0.43-2
https://inkscape.org/gallery/item/9151/inkscape-0.43.tar.gz (0.43) index=0.43-1
https://inkscape.org/gallery/item/9151/inkscape-0.43.tar.gz (0.43) index=0.43-1
https://inkscape.org/gallery/item/7646/inkscape-0.42.2.tar.bz2 (0.42.2) index=0.42.2-2
https://inkscape.org/gallery/item/7646/inkscape-0.42.2.tar.bz2 (0.42.2) index=0.42.2-2
https://inkscape.org/gallery/item/7636/inkscape-0.42.2.tar.gz (0.42.2) index=0.42.2-1
https://inkscape.org/gallery/item/7636/inkscape-0.42.2.tar.gz (0.42.2) index=0.42.2-1
https://inkscape.org/gallery/item/8001/inkscape-0.42.tar.bz2 (0.42) index=0.42-2
https://inkscape.org/gallery/item/8001/inkscape-0.42.tar.bz2 (0.42) index=0.42-2
https://inkscape.org/gallery/item/7991/inkscape-0.42.tar.gz (0.42) index=0.42-1
https://inkscape.org/gallery/item/7991/inkscape-0.42.tar.gz (0.42) index=0.42-1
https://inkscape.org/gallery/item/8661/inkscape-0.41.tar.bz2 (0.41) index=0.41-2
https://inkscape.org/gallery/item/8661/inkscape-0.41.tar.bz2 (0.41) index=0.41-2
https://inkscape.org/gallery/item/8651/inkscape-0.41.tar.gz (0.41) index=0.41-1
https://inkscape.org/gallery/item/8651/inkscape-0.41.tar.gz (0.41) index=0.41-1
https://inkscape.org/gallery/item/8896/inkscape-0.40.tar.bz2 (0.40) index=0.40-2
https://inkscape.org/gallery/item/8896/inkscape-0.40.tar.bz2 (0.40) index=0.40-2
https://inkscape.org/gallery/item/8891/inkscape-0.40.tar.gz (0.40) index=0.40-1
https://inkscape.org/gallery/item/8891/inkscape-0.40.tar.gz (0.40) index=0.40-1
https://inkscape.org/gallery/item/7876/inkscape-0.39.tar.bz2 (0.39) index=0.39-2
https://inkscape.org/gallery/item/7876/inkscape-0.39.tar.bz2 (0.39) index=0.39-2
https://inkscape.org/gallery/item/7871/inkscape-0.39.tar.gz (0.39) index=0.39-1
https://inkscape.org/gallery/item/7871/inkscape-0.39.tar.gz (0.39) index=0.39-1
https://inkscape.org/gallery/item/8151/inkscape-0.38.1.tar.bz2 (0.38.1) index=0.38.1-2
https://inkscape.org/gallery/item/8151/inkscape-0.38.1.tar.bz2 (0.38.1) index=0.38.1-2
https://inkscape.org/gallery/item/8146/inkscape-0.38.1.tar.gz (0.38.1) index=0.38.1-1
https://inkscape.org/gallery/item/8146/inkscape-0.38.1.tar.gz (0.38.1) index=0.38.1-1
https://inkscape.org/gallery/item/9046/inkscape-0.37.tar.gz (0.37) index=0.37-1
https://inkscape.org/gallery/item/9046/inkscape-0.37.tar.gz (0.37) index=0.37-1
uscan info: Looking at $base = https://inkscape.org/release/all/source/archive/?pre=0 with
    $filepattern = (?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)) found
    $newfile     = https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz
    $newversion  = 1.1.2
    $lastversion = 1.1.1
uscan info: Matching target for downloadurlmangle: https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz
uscan info: Upstream URL(+tag) to download is identified as    https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz
uscan info: Filename (filenamemangled) for downloaded file: inkscape-1.1.2.tar.xz
uscan: Newest version of inkscape on remote site is 1.1.2, local version is 1.1.1
uscan:  => Newer package available from:
        => https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz
uscan info: opts: pgpmode=previous,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
uscan info: line: https://inkscape.org/release/all/source/archive/?pre=0 (?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))(?:\.(?:asc|pgp|gpg|sig|sign)) previous
uscan info: Parsing pgpmode=previous
uscan info: Parsing uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
uscan info: line: https://inkscape.org/release/all/source/archive/?pre=0 (?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))(?:\.(?:asc|pgp|gpg|sig|sign)) previous
uscan info: Previous version not set, skipping
uscan info: Nothing was downloaded before, skipping pgp check
uscan info:   line https://inkscape.org/release/all/source/archive/?pre=0 (?:.*/)?inkscape(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?:_.*)?(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))(?:\.(?:asc|pgp|gpg|sig|sign)) previous
uscan info: Scan finished
1 mattia@warren ~/devel/debian/inkscape/inkscape (git)-[master] %


(the '1' at the start of the line is the previous command return code)

#1006114#8
Date:
2022-12-30 15:39:16 UTC
From:
To:
Hi, dear maintainers.

I think I'm facing the same issue when updating a watch file of a
package I maintain. I'll paste both versions of the file and the output
of uscan. The update is to make use of github api instead of scraping
the tags page - which is pretty unreliable since they like to change
everything from time to time :-(

Cheers,
Charles

Old d/watch:
version=4
opts="filenamemangle=s%(?:.*?)?V?(@ANY_VERSION@)(@ARCHIVE_EXT@)%kristall-$2$3%, \
      dversionmangle=s/@DEB_EXT@//, \
      repacksuffix=+dfsg" \
https://github.com/MasterQ32/kristall/tags \
(?:.*?/)?V?@ANY_VERSION@@ARCHIVE_EXT@


New d/watch:
version=4
opts="searchmode=plain, \
    filenamemangle=s%(?:.*?)?V(@ANY_VERSION@)%kristall-$2.tar.gz%, \
    dversionmangle=s/@DEB_EXT@//, \
    repacksuffix=+dfsg, \
    uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|a|b)\d*)$/$1~$2/" \
https://api.github.com/repos/MasterQ32/kristall/releases?per_page=100 \
https://api.github.com/repos/[^/]+/[^/]+/tarball/[Vv]?@ANY_VERSION@


Old d/watch scan:
 charles   a9eab71  …  debian  kristall  kristall  uscan --verbose --report
uscan info: uscan (version 2.22.2) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="kristall" version="0.3+git20210303.763bd81+dfsg-2" (as seen in debian/changelog)
uscan info: package="kristall" version="0.3+git20210303.763bd81+dfsg" (no epoch/revision)
uscan info: ./debian/changelog sets package="kristall" version="0.3+git20210303.763bd81+dfsg"
uscan info: Process watch file at: debian/watch
    package = kristall
    version = 0.3+git20210303.763bd81+dfsg
    pkg_dir = .
uscan info: opts: filenamemangle=s%(?:.*?)?V?((?:[-_]?(\d[\-+\.:\~\da-zA-Z]*)))((?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))%kristall-$2$3%, dversionmangle=s/(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)//, repacksuffix=+dfsg
uscan info: line: https://github.com/MasterQ32/kristall/tags (?:.*?/)?V?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Parsing filenamemangle=s%(?:.*?)?V?((?:[-_]?(\d[\-+\.:\~\da-zA-Z]*)))((?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))%kristall-$2$3%
uscan info: Parsing  dversionmangle=s/(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)//
uscan info: Parsing  repacksuffix=+dfsg
uscan info: line: https://github.com/MasterQ32/kristall/tags (?:.*?/)?V?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.3+git20210303.763bd81+dfsg
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.3+git20210303.763bd81
uscan info: Requesting URL:
https://github.com/MasterQ32/kristall/tags
uscan info: Matching pattern:
   (?:(?:https://github.com)?\/MasterQ32\/kristall\/)?(?:.*?/)?V?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Found the following matching hrefs on the web page (newest first):
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz (0.4) index=0.4-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz (0.4) index=0.4-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.zip (0.4) index=0.4-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.zip (0.4) index=0.4-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.3.tar.gz (0.3) index=0.3-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.3.tar.gz (0.3) index=0.3-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.3.zip (0.3) index=0.3-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.3.zip (0.3) index=0.3-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.2.tar.gz (0.2) index=0.2-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.2.tar.gz (0.2) index=0.2-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.2.zip (0.2) index=0.2-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.2.zip (0.2) index=0.2-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.1.tar.gz (0.1) index=0.1-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.1.tar.gz (0.1) index=0.1-1
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.1.zip (0.1) index=0.1-0
https://github.com/MasterQ32/kristall/archive/refs/tags/V0.1.zip (0.1) index=0.1-0
uscan info: Looking at $base = https://github.com/MasterQ32/kristall/tags with
    $filepattern = (?:.*?/)?V?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)) found
    $newfile     = https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz
    $newversion  = 0.4
    $lastversion = 0.3+git20210303.763bd81
uscan info: Matching target for downloadurlmangle: https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz
uscan info: Upstream URL(+tag) to download is identified as    https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz
uscan info: Matching target for filenamemangle: https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz
uscan info: Filename (filenamemangled) for downloaded file: kristall-0.4.tar.gz
uscan: Newest version of kristall on remote site is 0.4, local version is 0.3+git20210303.763bd81
       (mangled local version is 0.3+git20210303.763bd81)
uscan:  => Newer package available from:
        => https://github.com/MasterQ32/kristall/archive/refs/tags/V0.4.tar.gz
uscan info: Scan finished
 charles   a9eab71  …  debian  kristall  kristall  echo $?
0


New d/watch scan:
 charles   debian/latest  …  debian  kristall  kristall  uscan --verbose --report
uscan info: uscan (version 2.22.2) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="kristall" version="0.4+dfsg-1" (as seen in debian/changelog)
uscan info: package="kristall" version="0.4+dfsg" (no epoch/revision)
uscan info: ./debian/changelog sets package="kristall" version="0.4+dfsg"
uscan info: Process watch file at: debian/watch
    package = kristall
    version = 0.4+dfsg
    pkg_dir = .
uscan info: opts: searchmode=plain, filenamemangle=s%(?:.*?)?V((?:[-_]?(\d[\-+\.:\~\da-zA-Z]*)))%kristall-$2.tar.gz%, dversionmangle=s/(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)//, repacksuffix=+dfsg, uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|a|b)\d*)$/$1~$2/
uscan info: line: https://api.github.com/repos/MasterQ32/kristall/releases?per_page=100 https://api.github.com/repos/[^/]+/[^/]+/tarball/[Vv]?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))
uscan info: Parsing searchmode=plain
uscan info: Parsing  filenamemangle=s%(?:.*?)?V((?:[-_]?(\d[\-+\.:\~\da-zA-Z]*)))%kristall-$2.tar.gz%
uscan info: Parsing  dversionmangle=s/(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)//
uscan info: Parsing  repacksuffix=+dfsg
uscan info: Parsing  uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|a|b)\d*)$/$1~$2/
uscan info: line: https://api.github.com/repos/MasterQ32/kristall/releases?per_page=100 https://api.github.com/repos/[^/]+/[^/]+/tarball/[Vv]?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.4+dfsg
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.4
uscan info: Requesting URL:
https://api.github.com/repos/MasterQ32/kristall/releases?per_page=100
uscan info: Found the following matching hrefs on the web page (newest first):
https://api.github.com/repos/MasterQ32/kristall/tarball/V0.4 (0.4) index=0.4-0
https://api.github.com/repos/MasterQ32/kristall/tarball/V0.3 (0.3) index=0.3-0
https://api.github.com/repos/MasterQ32/kristall/tarball/V0.2 (0.2) index=0.2-0
https://api.github.com/repos/MasterQ32/kristall/tarball/V0.1 (0.1) index=0.1-0
uscan info: Looking at $base = https://api.github.com/repos/MasterQ32/kristall/releases?per_page=100 with
    $filepattern = https://api.github.com/repos/[^/]+/[^/]+/tarball/[Vv]?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*)) found
    $newfile     = https://api.github.com/repos/MasterQ32/kristall/tarball/V0.4
    $newversion  = 0.4
    $lastversion = 0.4
uscan info: Matching target for downloadurlmangle: https://api.github.com/repos/MasterQ32/kristall/tarball/V0.4
uscan info: Upstream URL(+tag) to download is identified as    https://api.github.com/repos/MasterQ32/kristall/tarball/V0.4
uscan info: Matching target for filenamemangle: https://api.github.com/repos/MasterQ32/kristall/tarball/V0.4
uscan info: Filename (filenamemangled) for downloaded file: kristall-0.4.tar.gz
uscan info: Newest version of kristall on remote site is 0.4, local version is 0.4
            (mangled local version is 0.4)
uscan info:  => Package is up to date from:
             => https://api.github.com/repos/MasterQ32/kristall/tarball/V0.4
uscan info: Scan finished
 charles   debian/latest  …  debian  kristall  kristall  1  echo $?
1

#1006114#13
Date:
2022-12-30 15:51:42 UTC
From:
To:
Hi, again.

Nevermind the last message. uscan was working correctly and I was
stupid. It exit with status 1 because no newer version was found.

Cheers,
Charles