Package: devscripts
Version: 2.23.4
Severity: wishlist
File: /usr/bin/uscan
X-Debbugs-Cc: charlesmel...@outlook.com

Dear Maintainers,

I'm the maintainer of kristall, a package that use tags with capital V.
For example V0.4, V0.3, etc. Because of this, I have to add a V? before
@ANY_VERSION@ in the watch file. I think it might be the case for other
maintainers so I'm sending this suggestion. Could you add the V prefix
to @ANY_VERSION@?

I'll attach a draft patch to give you an idea (but surely you do
understand a lot more perl than I, so really take it as a draft).

Cheers,
Charles

-- Package-specific info:

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

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
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.21.22
ii  fakeroot              1.31-1.2
ii  file                  1:5.44-3
ii  gnupg                 2.2.40-1.1
ii  gpgv                  2.2.40-1.1
ii  libc6                 2.36-9
ii  libfile-dirlist-perl  0.05-3
ii  libfile-homedir-perl  1.006-2
ii  libfile-touch-perl    0.12-2
ii  libfile-which-perl    1.27-2
ii  libipc-run-perl       20220807.0-1
ii  libmoo-perl           2.005005-1
ii  libwww-perl           6.68-1
ii  patchutils            0.4.2-1
ii  perl                  5.36.0-7
ii  python3               3.11.2-1+b1
ii  sensible-utils        0.0.17+nmu1
ii  wdiff                 1.2.2-5

Versions of packages devscripts recommends:
ii  apt                         2.6.1
ii  curl                        7.88.1-10
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2022.12.24
ii  dput-ng [dput]              1.35
ii  equivs                      2.3.1
ii  libdistro-info-perl         1.5
ii  libdpkg-perl                1.21.22
ii  libencode-locale-perl       1.05-3
ii  libgit-wrapper-perl         0.048-2
ii  libgitlab-api-v4-perl       0.26-3
ii  liblist-compare-perl        0.55-2
ii  liblwp-protocol-https-perl  6.10-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  libtry-tiny-perl            0.31-2
ii  liburi-perl                 5.17-1
ii  licensecheck                3.3.5-1
ii  lintian                     2.116.3
ii  man-db                      2.11.2-2
ii  patch                       2.7.6-7
ii  pristine-tar                1.50
ii  python3-apt                 2.6.0
ii  python3-debian              0.1.49
ii  python3-magic               2:0.4.26-3
ii  python3-requests            2.28.1+dfsg-1
ii  python3-unidiff             0.7.3-1
ii  python3-xdg                 0.28-2
ii  strace                      6.1-0.1
ii  unzip                       6.0-28
ii  wget                        1.21.3-1+b2
ii  xz-utils                    5.4.1-0.2

Versions of packages devscripts suggests:
pn  adequate                     <none>
pn  at                           <none>
ii  autopkgtest                  5.28
pn  bls-standalone               <none>
ii  build-essential              12.9
pn  check-all-the-things         <none>
pn  cvs-buildpackage             <none>
ii  debhelper                    13.11.4
pn  diffoscope                   <none>
pn  disorderfs                   <none>
pn  dose-extra                   <none>
pn  duck                         <none>
pn  elpa-devscripts              <none>
pn  faketime                     <none>
pn  gnuplot                      <none>
pn  how-can-i-help               <none>
ii  libauthen-sasl-perl          2.1600-3
pn  libdbd-pg-perl               <none>
ii  libfile-desktopentry-perl    0.22-3
pn  libterm-size-perl            <none>
ii  libtimedate-perl             2.3300-2
ii  libyaml-syck-perl            1.34-2+b1
ii  mailutils [mailx]            1:3.15-4
pn  mmdebstrap                   <none>
pn  mozilla-devscripts           <none>
pn  mutt                         <none>
ii  openssh-client [ssh-client]  1:9.2p1-2
pn  piuparts                     <none>
pn  postgresql-client            <none>
pn  pristine-lfs                 <none>
pn  quilt                        <none>
pn  ratt                         <none>
pn  reprotest                    <none>
pn  svn-buildpackage             <none>
ii  w3m                          0.5.3+git20230121-2

-- no debconf information
diff --git a/lib/Devscripts/Uscan/WatchFile.pm 
b/lib/Devscripts/Uscan/WatchFile.pm
index 06ab61df..71be4491 100644
--- a/lib/Devscripts/Uscan/WatchFile.pm
+++ b/lib/Devscripts/Uscan/WatchFile.pm
@@ -104,7 +104,7 @@ use List::Util qw/first/;
 use Moo;
 
 use constant {
-    ANY_VERSION => '(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))',
+    ANY_VERSION => '(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))',
     ARCHIVE_EXT =>
       '(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))',
     DEB_EXT => '(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)',

Reply via email to