Package: devscripts
Version: 2.26.9
Severity: normal
File: /usr/bin/uscan

Hi,

I've tried to update the following watch file

version=4
opts="searchmode=plain" \
  https://api.github.com/repos/storaged-project/udisks/releases \
  
https://github.com/storaged-project/udisks/releases/download/udisks-(?:\d[\d.]*)/udisks@ANY_VERSION@@ARCHIVE_EXT@

using the new, template based approach in version 5:


When running uscan with the old, v4 based watch file, I get:

...
    $base               = 
https://api.github.com/repos/storaged-project/udisks/releases
    $filepattern        = 
https://github.com/storaged-project/udisks/releases/download/udisks-(?:\d[\d.]*)/udisks(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
    $newfile            = 
https://github.com/storaged-project/udisks/releases/download/udisks-2.11.1/udisks-2.11.1.tar.bz2
    $mangled_newversion = 2.11.1
    $newversion         = 2.11.1
    $lastversion        = 2.11.1
uscan info: Matching target for downloadurlmangle: 
https://github.com/storaged-project/udisks/releases/download/udisks-2.11.1/udisks-2.11.1.tar.bz2
uscan info: Upstream URL(+tag) to download is identified as    
https://github.com/storaged-project/udisks/releases/download/udisks-2.11.1/udisks-2.11.1.tar.bz2
uscan info: Filename (filenamemangled) for downloaded file: 
udisks-2.11.1.tar.bz2
uscan info: Newest version of udisks2 on remote site is 2.11.1, local version 
is 2.11.1
uscan info:  => Package is up to date from:
             => 
https://github.com/storaged-project/udisks/releases/download/udisks-2.11.1/udisks-2.11.1.tar.bz2


I.e., it prefers the strongest compression it finds. In this case bz2




In contrast, v5 produces:

    $base               = 
https://api.github.com/repos/storaged-project/udisks/releases
    $filepattern        = 
https://api.github.com/repos/[^/]+/[^/]+/tarball/(?>[^/]+(?<=(?:\D|alpha|beta|rc))\-)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))(?:(?=")|$)
    $newfile            = 
https://api.github.com/repos/storaged-project/udisks/tarball/udisks-2.11.1
    $mangled_newversion = 2.11.1
    $newversion         = 2.11.1
    $lastversion        = 2.11.1
uscan info: Matching target for downloadurlmangle: 
https://api.github.com/repos/storaged-project/udisks/tarball/udisks-2.11.1
uscan info: Upstream URL(+tag) to download is identified as    
https://api.github.com/repos/storaged-project/udisks/tarball/udisks-2.11.1
uscan info: Matching target for filenamemangle: 
https://api.github.com/repos/storaged-project/udisks/tarball/udisks-2.11.1
uscan info: Filename (filenamemangled) for downloaded file: 
udisks2-2.11.1.tar.gz
uscan info: Newest version of udisks2 on remote site is 2.11.1, local version 
is 2.11.1
uscan info:  => Package is up to date from:
             => 
https://api.github.com/repos/storaged-project/udisks/tarball/udisks-2.11.1


So, v5 would download a .gz tarball.

Is this a deliberate decision of v5? If so why?
If not, could it be changed to behave more like @ARCHIVE_EXT@ in v4.


Thanks for considering.

Regards,
Michael



-- Package-specific info:

--- /etc/devscripts.conf ---
Empty.

--- ~/.devscripts ---
DEBSIGN_KEYID="09B3 AC2E CB16 9C90 4345 CC54 6AE1 DF0D 608F 22DC"

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.14+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages devscripts depends on:
ii  dpkg-dev                 1.23.7
ii  file                     1:5.47-4
ii  gpg                      2.4.9-5
ii  gpg-agent                2.4.9-5
ii  gpgv                     2.4.9-5
ii  libconfig-inifiles-perl  3.000003-5
ii  libdpkg-perl             1.23.7
ii  libfile-dirlist-perl     0.05-3
ii  libfile-homedir-perl     1.006-2
ii  libfile-touch-perl       0.12-2
ii  libio-string-perl        1.08-4
ii  libmoo-perl              2.005005-1
ii  libwww-perl              6.83-1
ii  libyaml-libyaml-perl     0.909.0+ds-1
ii  patchutils               0.4.5-1
ii  perl                     5.40.1-8
ii  python3                  3.14.6-1
ii  sensible-utils           0.0.26
ii  wdiff                    1.2.2-9

Versions of packages devscripts recommends:
ii  apt                         3.3.1
ii  curl                        8.21.0-2
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2026.06.27
pn  debian-tag2upload-keyring   <none>
ii  diffstat                    1.69-1
ii  dput-ng [dput]              1.46
ii  equivs                      2.3.3
ii  git-debpush                 15.10
ii  libdistro-info-perl         1.15
ii  libencode-locale-perl       1.05-3
ii  libgitlab-api-v4-perl       0.27-1
ii  libjson-perl                4.10000-1
ii  liblwp-protocol-https-perl  6.15-1
ii  libmetacpan-client-perl     2.043000-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  liburi-perl                 5.35-1
ii  licensecheck                3.3.9-1
ii  lintian                     2.137.1
ii  lzip                        1.26-1
ii  man-db                      2.13.1-1
ii  patch                       2.8-2
ii  pristine-tar                1.50+nmu2
ii  python3-apt                 3.1.0
ii  python3-debian              1.1.1
ii  python3-magic               2:0.4.27-5
ii  python3-requests            2.34.2-1
ii  python3-unidiff             0.7.5-2
ii  python3-xdg                 0.28-3
ii  sbuild                      0.91.10
ii  strace                      7.0+ds-1
ii  unzip                       6.0-29
ii  wget                        1.25.0-2
ii  xz-utils                    5.8.3-1

Versions of packages devscripts suggests:
ii  adequate                                  0.17.6+b1
pn  at                                        <none>
ii  autopkgtest                               5.55
pn  bls-standalone                            <none>
ii  bsd-mailx [mailx]                         8.1.2-0.20220412cvs-1.1
ii  build-essential                           12.12
pn  check-all-the-things                      <none>
ii  debhelper                                 14.2
pn  diffoscope                                <none>
ii  disorderfs                                0.6.2-1
ii  docker.io                                 28.5.2+dfsg4-3
ii  dose-extra                                7.0.0-8+b1
pn  duck                                      <none>
pn  elpa-devscripts                           <none>
ii  faketime                                  0.9.12-0.2
pn  gnuplot                                   <none>
pn  how-can-i-help                            <none>
ii  libauthen-sasl-perl                       2.2000-1
pn  libdbd-pg-perl                            <none>
pn  libterm-size-perl                         <none>
ii  libtimedate-perl                          2.3500-1
ii  mmdebstrap                                1.5.7-3
pn  mutt                                      <none>
ii  openssh-client [ssh-client]               1:10.3p1-8
ii  piuparts                                  1.6.0
ii  postfix [mail-transport-agent]            3.11.4-2
ii  postgresql-client-18 [postgresql-client]  18.4-1+b1
pn  pristine-lfs                              <none>
ii  python3-debianbts                         4.1.1
pn  python3-pycurl                            <none>
ii  quilt                                     0.69-0.1
pn  ratt                                      <none>
ii  reprotest                                 0.7.32
pn  svn-buildpackage                          <none>
pn  w3m                                       <none>

-- no debconf information

Reply via email to