Bug#1038393: supertux: improve d/watch file

Patrice Duroux patrice.duroux at gmail.com
Sun Jun 18 16:33:44 BST 2023


Source: supertux
Version: 0.6.3-2
Followup-For: Bug #1038393

Hi,

Sorry for that. Here is a second version of the patch.

I suspect a bug in uscan because using the following rule in the d/watch file:

downloadurlmangle=s%archive/refs/tags/v?(@ANY_VERSION@)(@ARCHIVE_EXT@)%releases/download/v$1/SuperTux-v$1-Source$2%

gives the following message from uscan:

uscan info: Upstream URL(+tag) to download is identified as
https://github.com/SuperTux/supertux/releases/download/v0.6.3/SuperTux-v0.6.3-Source0.6.3

in place of the expected one:

uscan info: Upstream URL(+tag) to download is identified as
https://github.com/SuperTux/supertux/releases/download/v0.6.3/SuperTux-v0.6.3-Source.tar.gz


For this reason, the extension (.tar.gz) is hard-coded in the rule of this
second version.

Regards,
Patrice


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.3.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff --git a/debian/watch b/debian/watch
index 83aa7f1..21a157b 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,5 @@
 version=4
-opts="uversionmangle=s/-rc/~rc/;s/-alpha/~alpha/;s/-beta/~beta/;s/-Source//" \
-https://github.com/SuperTux/supertux/releases .*/SuperTux-v?@ANY_VERSION at -Source@ARCHIVE_EXT@
+#https://github.com/SuperTux/supertux/releases/download/v0.6.3/SuperTux-v0.6.3-Source.tar.gz
+#      //github.com/SuperTux/supertux/releases/download/SuperTux-v0.6.3-Source.tar.gz
+opts="uversionmangle=s/-rc/~rc/;s/-alpha/~alpha/;s/-beta/~beta/, downloadurlmangle=s%archive/refs/tags/v?(@ANY_VERSION@).tar.gz%releases/download/v$1/SuperTux-v$1-Source.tar.gz%, filenamemangle=s%(?:.*?)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%@PACKAGE at -$1$2%" \
+https://github.com/SuperTux/@PACKAGE@/tags (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@


More information about the Pkg-games-devel mailing list