chiark / gitweb /
Switch debian/watch to using Git
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 7 Oct 2024 13:37:09 +0000 (14:37 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 7 Oct 2024 13:37:09 +0000 (14:37 +0100)
On balance, I think this is better.  Ian has advised me to ignore the
"last resort" wording in uscan(1), and I've decided that since the
Debian package will be built from Git, there's not much point in
detecting an upstream release where I've not properly updated the Git
repository.  And if I do get that wrong, it's good to have something
that will detect it.

This means that uscan now not only detects new upstream versions, but
can also construct the correct orig.tar.gz for Debian purposes.

debian/watch

index 93508c24ddad36894e172c7282e5db2131cc587a..8201e3db668d9d35ff5129b6c9818b9b4333d52e 100644 (file)
@@ -1,2 +1,3 @@
 version=4
-https://bjh21.me.uk/@PACKAGE@/@PACKAGE@-(\d\d\d\.\d\d\d).zip
+opts="mode=git,gitmode=full" \
+  https://bjh21.me.uk/@PACKAGE@/.git refs/tags/@PACKAGE@-(\d\d\d\.\d\d\d)