Your message dated Wed, 22 Oct 2025 19:24:13 -0400
with message-id
<CAAajCMbTX9NuPUu7Q2dxOmXnBwkYSuXv=c6js3scnw8_fhq...@mail.gmail.com>
and subject line Re: Bug#1110090: uscan: --update-watchfile should use new
templates where possible
has caused the Debian Bug report #1110090,
regarding uscan: --update-watchfile should use new templates where possible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1110090: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110090
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.25.17
Severity: wishlist
X-Debbugs-Cc: [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Salut Xavier !
After updating devscripts to 2.25.17 I had a look at the exciting new
templates stuff and the --update-watchfile option, and noticed that
the latter doesn't know about the former yet. I guess that's well
known, I just wanted to document it in the BTS as well :)
Example:
libmemory-usage-perl:
% uscan --update-watchfile
uscan warn: debian/watch is now converted to version 5.
uscan warn: BE CAREFUL, some default values changed in version 5, you shouldn't
commit this without test.
% git diff
diff --git a/debian/watch b/debian/watch
index 31359cd..cabbd18 100644
- --- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,4 @@
- -version=4
- -https://metacpan.org/release/Memory-Usage
.*/Memory-Usage-v?@ANY_VERSION@@ARCHIVE_EXT@$
+Version: 5
+
+Source: https://metacpan.org/release/Memory-Usage
+Matching-Pattern: .*/Memory-Usage-v?@ANY_VERSION@@ARCHIVE_EXT@$
I hope that Devscripts::Uscan::Version4 can be updated to output
#v+
Version: 5
Template: Metacpan
Dist: Memory-Usage
#v-
Thanks again for all those nice uscan improvements! The template
stuff works perfectly with the above example:
#v+
% uscan --report --debug
uscan info: Scan watch files in .
uscan debug: Found ./debian
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="libmemory-usage-perl" version="0.201-4" (as seen in
debian/changelog)
uscan info: package="libmemory-usage-perl" version="0.201" (no epoch/revision)
uscan info: ./debian/changelog sets package="libmemory-usage-perl"
version="0.201"
uscan info: Process watch file at: debian/watch
package = libmemory-usage-perl
version = 0.201
pkg_dir = .
uscan debug: parse options: << ==EOF==
Template: Metacpan
Dist: Memory-Usage
uscan info: Parsing mode=metacpan
uscan info: Parsing pgpmode=none
uscan debug: $self->{'pgpmode'}=none, $self->{'pgpsigurlmangle'}=undef
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.201
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.201
uscan debug: watch file has:
$base = Memory-Usage
$filepattern =
https://cpan.metacpan.org/.*Memory-Usage-(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))
$lastversion = 0.201
$action =
mode = metacpan
pgpmode = none
versionmode = newer
$site = Memory-Usage
$basedir =
uscan debug: line: search()
uscan info: Searching versions of Memory-Usage
uscan info: Found the following matching files on the web page (newest first):
https://cpan.metacpan.org/authors/id/D/DO/DONEILL/Memory-Usage-0.201.tar.gz
(0.201) index=0.201-1
uscan info: Looking at $base = Memory-Usage with
$filepattern =
https://cpan.metacpan.org/.*Memory-Usage-(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))
found
$newfile =
https://cpan.metacpan.org/authors/id/D/DO/DONEILL/Memory-Usage-0.201.tar.gz
$newversion = 0.201
$lastversion = 0.201
uscan debug: line: get_upstream_url()
uscan info: Upstream URL(+tag) to download is identified as
https://cpan.metacpan.org/authors/id/D/DO/DONEILL/Memory-Usage-0.201.tar.gz
uscan debug: line: get_newfile_base()
uscan info: Filename (filenamemangled) for downloaded file:
Memory-Usage-0.201.tar.gz
uscan debug: line: cmp_versions()
uscan info: Newest version of libmemory-usage-perl on remote site is 0.201,
local version is 0.201
uscan info: => Package is up to date from:
=>
https://cpan.metacpan.org/authors/id/D/DO/DONEILL/Memory-Usage-0.201.tar.gz
uscan debug: line: download_file_and_sig()
uscan debug: line: mkorigtargz()
uscan info: Scan finished
#v-
(BTW: Should libmetacpan-client-perl be in devscripts' Suggests?)
Cheers,
gregor
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmiI+FtfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgYSxw/8CjFPeDLsD6B4wnoiHrnLnuw5pBlOgdBnNL/jtJQDFzfe+LhzgRTBXWFt
acrTbxs0PPHzxIHZclxWMP1ayG4sUV42bzAKz0Erunto59VpDufsrbI59tXidgSK
RRioXYCBnUJw/bA1i/TMpSapy1JGKvpLZ0b1sy46mVtKCYxE0tZGGEbIU0zFqw2w
EYIQFDJ9ORkL9mS1hgNCWBFSDrTfVEFbgGQtdkvyWnNxXhOXej1jQOJYMg8Vd5g/
E/DGkgMAmExUwqF4fVryb0ki6lDJwb9up7uMWh1zg56VSjkkE5sELXd8GWl9tOrB
UdCnopRHfo6m3t6JSZ5J+DajY7lsuv6FggnEu7TJJc1c1fXwLlRLLBRRXMSETR0K
CUI9GBNY2veJXsWHSkf5QwS7aSkMAEx+pQgolGwYfo39Tz1+gF13LXqGnNbZSDv9
HzmCKm+JFkJ3FAudW6EKD7H1q3VoKegnVyMrkH2d5Wlj2GjW7AQSyGCfWvA+Ngoh
kfGoqTfvEiNXxClG7CriZHk0QFbEM4UxxB3gvEU92Iu2qN5+Iw8P7/D6IngQTEdy
kB0WKPiUNcgzhUBmYH+fRXYTdqZ1/V7gwm7WNJ5TV4LRSlzGBTq3D0CNMtfDJiZV
25gKaO4bG5+qjLdn5CQ0p/+DOb7z9w7wNdp1yZhSDgvCf2VJ0tk=
=5V2Q
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Version: 2.25.20
--- End Message ---