Summary: unhide redirectors
On Wed, Dec 01, 2021 at 09:11:17AM +0100, Yadd wrote:
Hi,
after few discussions with some devscripts maintainers, we decided to build
a new "version=5" format for debian/watch.
Principles:
* keep compatibility with versions 3 and 4, no need to change all
debian/watch files
* new version 5 format using the same syntax than other debian/* files
(rfc822 + "# comments")
* no option renaming (becomes case-insensitive to be compliant with
all formats)
* Version 5:
* Main (first) paragraph contains "Version: 5" and optional options
that change default values for source-paragraph
* URL and regex are separated
* Some default values change. For example, `dversionmangle` default
value will be "auto" (drop +dfsg, ~ds,...), uversionmangle=s/-/~/g,
filenamemangle=s/.*?(\d[\d\.]*@ARCHIVE_EXT@)/@PACKAGE@-$1/...
Example:
Version: 5
....
Of course, comments are welcome!
I think the move from v4 to v5 is an excellent opportunity
to express in the watch file that there is a dependency on a redirector.
Example
version=4
https://sf.net/<project>/ <tar-name>-(.+)\.tar\.gz debian uupdate
becomes something like
Version: 5
Source: https://qa.debian.org/watch/sourceforge/<project> <tar-name>-(.+)\.tar\.gz debian uupdate