From 45160fd088248d59f765eb415d9dcbb0370b810b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 3 Oct 2022 10:19:31 +0100 Subject: [PATCH] d/watch: Adapt to Github website changes --- debian/watch | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/watch b/debian/watch index 048ca2ae..9bc35d32 100644 --- a/debian/watch +++ b/debian/watch @@ -1,2 +1,9 @@ version=4 -https://github.com/ostreedev/ostree/releases .*/libostree-(\d\S*)\.tar\.xz +# Upstream releases official Autotools 'make dist' tarballs, so we use +# those in preference to git tags +opts="\ + compression=xz, \ + dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//, \ + downloadurlmangle=s#/tag/#/download/#;s#(v?@ANY_VERSION@)$#$1/libostree-$2.tar.xz#, \ + filenamemangle=s#v?@ANY_VERSION@#@PACKAGE@-$1.tar.xz#" \ +https://github.com/ostreedev/@PACKAGE@/tags .*/releases/tag/v?@ANY_VERSION@