debian: Update watch file to version 5

Done automatically with `uscan --update-watchfile`.

Fixes lintian "older-debian-watch-file-standard 4" info.

lintian < 2.127.0 does not recognize this yet, so we have to ignore its
complaint on older Debian/Ubuntu releases.
This commit is contained in:
Martin Pitt 2026-01-09 09:43:08 +01:00 committed by Martin Pitt
parent c38f43929e
commit e6797a234b
2 changed files with 15 additions and 5 deletions

View file

@ -141,6 +141,9 @@ def build_install_package(dist_tars: list[str], image: str) -> list[str]:
# Ubuntu 22.04 raises elf-error on *-dbgsym: "In program headers: Unable to find program interpreter name"
if image == "ubuntu-2204":
suppress.add("elf-error")
# older OSes don't yet know about watch format v5; drop ubuntu-stable once that moves to lintian 2.127.0
if image in ["debian-trixie", "ubuntu-2204", "ubuntu-2404", "ubuntu-stable"]:
suppress.add("missing-debian-watch-file-standard")
args.append(fr"""
cd /var/tmp/build;

View file

@ -1,5 +1,12 @@
version=4
opts="searchmode=plain, \
filenamemangle=s/.+\/@PACKAGE@-@ANY_VERSION@.tar.gz/@PACKAGE@-$1\.tar\.xz/" \
https://api.github.com/repos/cockpit-project/@PACKAGE@/releases \
https://github.com/cockpit-project/@PACKAGE@/releases/download/\d[\.\d]*/@PACKAGE@-@ANY_VERSION@.tar.xz
Version: 5
Source: https://api.github.com/repos/cockpit-project/@PACKAGE@/releases
Matching-Pattern: https://github.com/cockpit-project/@PACKAGE@/releases/download/\d[\.\d]*/@PACKAGE@-@ANY_VERSION@.tar.xz
Filenamemangle: s/.+\/@PACKAGE@-@ANY_VERSION@.tar.gz/@PACKAGE@-$1\.tar\.xz/
Searchmode: plain
Component: node
Source: https://api.github.com/repos/cockpit-project/@PACKAGE@/releases
Matching-Pattern: https://github.com/cockpit-project/@PACKAGE@/releases/download/\d[\.\d]*/@PACKAGE@-node-@ANY_VERSION@.tar.xz
Filenamemangle: s/.+\/@PACKAGE@-node-@ANY_VERSION@.tar.gz/@PACKAGE@-$1\.tar\.xz/
Searchmode: plain