[Pkg-privacy-maintainers] Bug#1079918: Patch does not work!
Patrice Duroux
patrice.duroux at gmail.com
Wed Aug 28 17:30:31 BST 2024
this one is working for me:
$ more debian/watch
version=4
opts="searchmode=plain" \
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc \
/tpo/applications/torbrowser-launcher/-/archive/v?\d[\d.]+/@PACKAGE@@ANY_VERSION@\.tar\.gz
$ uscan --report-status
uscan info: uscan (version 2.23.7) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="torbrowser-launcher" version="0.3.7-3" (as seen in debian/changelog)
uscan info: package="torbrowser-launcher" version="0.3.7" (no epoch/revision)
uscan info: ./debian/changelog sets package="torbrowser-launcher" version="0.3.7"
uscan info: Process watch file at: debian/watch
package = torbrowser-launcher
version = 0.3.7
pkg_dir = .
uscan info: opts: searchmode=plain
uscan info: line: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc /tpo/applications/torbrowser-launcher/-/archive/v?\d[\d.]+/torbrowser-launcher(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))\.tar\.gz
uscan info: Parsing searchmode=plain
uscan info: line: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc /tpo/applications/torbrowser-launcher/-/archive/v?\d[\d.]+/torbrowser-launcher(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))\.tar\.gz
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.3.7
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.3.7
uscan info: Requesting URL:
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc
uscan info: redirections: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/tags?sort=updated_desc
uscan info: Found the following matching hrefs on the web page (newest first):
/tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz (0.3.7) index=0.3.7-1
uscan info: Looking at $base = https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc with
$filepattern = /tpo/applications/torbrowser-launcher/-/archive/v?\d[\d.]+/torbrowser-launcher(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))\.tar\.gz found
$newfile = /tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz
$newversion = 0.3.7
$lastversion = 0.3.7
uscan info: Unable to determine upstream url from redirections,
defaulting to using site specified in watch file
uscan info: Matching target for downloadurlmangle: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz
uscan info: Upstream URL(+tag) to download is identified as https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz
uscan info: Filename (filenamemangled) for downloaded file: torbrowser-launcher-v0.3.7.tar.gz
uscan info: Newest version of torbrowser-launcher on remote site is 0.3.7, local version is 0.3.7
uscan info: => Package is up to date from:
=> https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz
uscan info: Scan finished
$ uscan --download-current-version
Newest version of torbrowser-launcher on remote site is 0.3.7, specified download version is 0.3.7
uscan warn: Possible OpenPGP signature found at:
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz.asc
* Add opts=pgpsigurlmangle=s/$/.asc/ or opts=pgpmode=auto to debian/watch
* Add debian/upstream/signing-key.asc.
See uscan(1) for more details
Successfully symlinked ../torbrowser-launcher-v0.3.7.tar.gz to ../torbrowser-launcher_0.3.7.orig.tar.gz.
Thanks,
Patrice
-------------- next part --------------
diff --git a/debian/watch b/debian/watch
index c7cfe8f..740d020 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
version=4
opts="searchmode=plain" \
-https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc .*/v?\d[\d.]+/@PACKAGE at -v?(\d\S*)\.tar\.gz
+https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/tags?sort=updated_desc /tpo/applications/torbrowser-launcher/-/archive/v?\d[\d.]+/@PACKAGE@@ANY_VERSION@\.tar\.gz
More information about the Pkg-privacy-maintainers
mailing list