watch-fixes - chardet

Ready changes

Diff

diff --git a/debian/changelog b/debian/changelog
index 287df45..235ebe7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+chardet (5.1.0+dfsg-3) UNRELEASED; urgency=medium
+
+  * Update watch file from github
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 17 Jun 2023 13:06:04 -0000
+
 chardet (5.1.0+dfsg-2) unstable; urgency=medium
 
   * Rebuild to workaround bin-only NEW → source only testing migration
diff --git a/debian/watch b/debian/watch
index 4e0c640..e8cadb2 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,8 +1,2 @@
 version=4
-
-opts="mode=git, \
-      compression=gz, \
-      uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/, \
-      dversionmangle=s/\+(dfsg|ds)(\.?\d+)?$//" \
-https://github.com/chardet/chardet.git \
-      refs/tags/@ANY_VERSION@
+opts=filenamemangle=s/.*\/(\d\S+)\.tar\.gz/chardet-$1\.tar\.gz/ https://github.com/chardet/chardet/tags .*\/(\d\S+)\.tar\.gz

Run locally

More details

Full run details