Package: devscripts
Version: 2.25.20
Followup-For: Bug #1113795

I'm afraid i can reproduce the problem here.

here's my version-5 watchfile:
```
Version: 5

Template: GitLab
Dist: https://git.iem.at/ambisonics/libambix
Dversionmangle: auto
```

when I run `uscan --report -v` on this I get:
```
$ uscan --report -v
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="libambix" version="0.1.2-2" (as seen in debian/changelog)
uscan info: package="libambix" version="0.1.2" (no epoch/revision)
uscan info: ./debian/changelog sets package="libambix" version="0.1.2"
uscan info: Process watch file at: debian/watch
    package = libambix
    version = 0.1.2
    pkg_dir = .
uscan info: Parsing dversionmangle: 
s/(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)//
uscan info: Parsing filenamemangle: 
s%.*?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))$%libambix-$1.tar.gz%
uscan info: Parsing mode: gitlab
uscan info: Parsing pgpmode: none
uscan info: Parsing uversionmangle: 
s/(\d)[_\.\-\+]?((?:RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/
uscan info: Parsing versiontype: (?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.1.2
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.1.2
uscan info: Searching versions of https://git.iem.at/ambisonics/libambix
uscan info: Gitlab project_id is 95
uscan info: Found the following matching files on the web page (newest first):
   https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.2 
(v0.1.2) index=v0.1.2-1
   https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.1 
(v0.1.1) index=v0.1.1-1
   https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1 
(v0.1) index=v0.1-1
   https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.0.1 
(v0.0.1) index=v0.0.1-1
uscan info: Looking at $base        = https://git.iem.at/ambisonics/libambix 
with
    $filepattern        = .*(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*)) found
    $newfile            = 
https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.2
    $mangled_newversion = v0.1.2
    $newversion         = v0.1.2
    $lastversion        = 0.1.2
uscan info: Matching target for downloadurlmangle: 
https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.2
uscan info: Upstream URL(+tag) to download is identified as    
https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.2
uscan info: Matching target for filenamemangle: 
https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.2
uscan info: Filename (filenamemangled) for downloaded file: 
libambix-0.1.2.tar.gz
Newest version of libambix on remote site is v0.1.2, local version is 0.1.2
 => Newer package available from:
        => 
https://git.iem.at/api/v4/projects/95/repository/archive.tar.gz?sha=v0.1.2
uscan info: Scan finished
```

as you can see, the mangled_newversion is `v0.1.2`, but it really should
be `0.1.2`.
Interestingly, the mangled filename is `libambix-0.1.2.tar.gz`, so here
it gets the version correct.

In case it matters: the gitlab-server (git.iem.at) runs Gitlab-CE 18.4.2

i would really love to use version-5 of d/watch, as it is so much more
readable!

gfmadrs
IOhannes



-- Package-specific info:

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

--- ~/.devscripts ---
DEBSIGN_KEYID="7405E745574809734800156DB65019C47F7A36F8"
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -ICVS -I.svn -I.git"
DEBFULLNAME="IOhannes m zmölnig (Debian/GNU)"
DEBEMAIL="[email protected]"

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

Kernel: Linux 6.16.9+deb14-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CPU_OUT_OF_SPEC, 
TAINT_OOT_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.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.22.21
ii  file                  1:5.46-5
ii  gpg                   2.4.8-3
ii  gpg-agent             2.4.8-3
ii  gpgv                  2.4.8-3
ii  libdpkg-perl          1.22.21
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.80-1
ii  patchutils            0.4.2-1
ii  perl                  5.40.1-6
ii  python3               3.13.7-1
ii  sensible-utils        0.0.26
ii  wdiff                 1.2.2-9

Versions of packages devscripts recommends:
ii  apt                         3.1.6
ii  curl                        8.16.0-1
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2025.09.18
ii  debian-tag2upload-keyring   1.1
ii  dput-ng [dput]              1.44
ii  equivs                      2.3.2
ii  git-debpush                 13.15
ii  libdistro-info-perl         1.14
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.14-1
ii  libmetacpan-client-perl     2.033000-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  liburi-perl                 5.34-1
ii  licensecheck                3.3.9-1
ii  lintian                     2.126.0
ii  lzip                        1.25-3
ii  man-db                      2.13.1-1
ii  patch                       2.8-2
ii  pristine-tar                1.50+nmu2
ii  python3-apt                 3.0.0
ii  python3-debian              1.0.1
ii  python3-magic               2:0.4.27-3
ii  python3-requests            2.32.5+dfsg-1
ii  python3-unidiff             0.7.5-2
ii  python3-xdg                 0.28-2
ii  strace                      6.16+ds-2
ii  unzip                       6.0-29
ii  wget                        1.25.0-2
ii  xz-utils                    5.8.1-1.1

Versions of packages devscripts suggests:
ii  adequate                     0.17.6+b1
pn  at                           <none>
ii  autopkgtest                  5.51
ii  bls-standalone               0.20151231+b1
ii  bsd-mailx [mailx]            8.1.2-0.20220412cvs-1.1
ii  build-essential              12.12
ii  check-all-the-things         2025.02.06
ii  debhelper                    13.28
ii  diffoscope                   306
pn  disorderfs                   <none>
pn  docker.io                    <none>
ii  dose-extra                   7.0.0-6+b4
ii  duck                         0.14.4
pn  elpa-devscripts              <none>
pn  faketime                     <none>
ii  gnuplot-qt [gnuplot]         6.0.3+dfsg1-1
pn  how-can-i-help               <none>
ii  libauthen-sasl-perl          2.1900-1
pn  libdbd-pg-perl               <none>
ii  libgitlab-api-v4-perl        0.27-1
ii  libterm-size-perl            0.211-1+b5
ii  libtimedate-perl             2.3300-2
ii  libyaml-libyaml-perl         0.904.0+ds-1
ii  mailutils [mailx]            1:3.20-2
ii  mmdebstrap                   1.5.7-3
pn  mutt                         <none>
ii  openssh-client [ssh-client]  1:10.0p1-8
ii  piuparts                     1.6.0
pn  postgresql-client            <none>
pn  pristine-lfs                 <none>
ii  python3-debianbts            4.1.1
pn  python3-pycurl               <none>
ii  quilt                        0.68-1
ii  ratt                         0.0~git20250829.39528ce-1
pn  reprotest                    <none>
pn  svn-buildpackage             <none>
pn  w3m                          <none>

-- no debconf information

Reply via email to