On 7/29/25 18:35, gregor herrmann wrote:
Package: devscripts
Version: 2.25.17
Severity: wishlist
X-Debbugs-Cc: [email protected]
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
[...]
(BTW: Should libmetacpan-client-perl be in devscripts' Suggests?)
Cheers,
gregor
Hi Gregor,
thanks for suggestions, tests and reviews! To avoid any regression, I
added this change only when --update-watch is used. Please try
https://salsa.debian.org/debian/devscripts/-/merge_requests/533
Best regards,
Xavier