• Re: Help fixing or debugging debian/watch

    From Andreas Beckmann@21:1/5 to Carles Pina i Estany on Wed Oct 25 01:10:01 2023
    On 24/10/2023 23.52, Carles Pina i Estany wrote:
    New user of debian/watch and I cannot see why it reports failure in a qa.debian.org but I cannot reproduce it.

    status: error
    warnings: In debian/watch no matching files for watch line https://github.com/kyan001/ping3/tags https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))

    The expansion of @ANY_VERSION@ does not contain 'v?' in the older uscan
    version running on the server, while it does on the newer uscan you used locally:

    uscan info: Matching pattern:

    (?:(?:https://github.com)?\/kyan001\/ping3\/)?https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))

    carles@pinux:[debian/unstable]~/git/debian/python-ping3$ cat debian/watch version=4
    https://github.com/kyan001/ping3/tags \
    https://github.com/kyan001/ping3/archive/refs/tags/@ANY_VERSION@@ARCHIVE_EXT@

    BTW, the uscan manpage suggests this format for github (filenamemangle
    omitted to match your example):

    version=4
    https://github.com/<user>/<project>/tags \
    (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@

    i.e. wildcards for the protocol, host and path parts and 'v?' version prefix

    Andreas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carles Pina i Estany@21:1/5 to All on Tue Oct 24 22:52:16 2023
    Hi,

    New user of debian/watch and I cannot see why it reports failure in a qa.debian.org but I cannot reproduce it.

    In:
    https://qa.debian.org/cgi-bin/watch?pkg=python-ping3

    It says:
    -----------------
    status: error
    warnings: In debian/watch no matching files for watch line https://github.com/kyan001/ping3/tags https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
    -----------------

    but when I try locally:
    -----------------
    carles@pinux:[debian/unstable]~/git/debian/python-ping3$ cat debian/watch version=4
    https://github.com/kyan001/ping3/tags \
    https://github.com/kyan001/ping3/archive/refs/tags/@ANY_VERSION@@ARCHIVE_EXT@ -----------------

    No output:
    -----------------
    carles@pinux:[debian/unstable]~/git/debian/python-ping3$ uscan -----------------

    Or:
    -----------------
    carles@pinux:[debian/unstable]~/git/debian/python-ping3$ uscan -v
    uscan info: uscan (version 2.23.4) See uscan(1) for help
    uscan info: Scan watch files in .
    uscan info: Check debian/watch and debian/changelog in .
    uscan info: package="python-ping3" version="4.0.4-1" (as seen in debian/changelog)
    uscan info: package="python-ping3" version="4.0.4" (no epoch/revision)
    uscan info: ./debian/changelog sets package="python-ping3" version="4.0.4" uscan info: Process watch file at: debian/watch
    package = python-ping3
    version = 4.0.4
    pkg_dir = .
    uscan info: Last orig.tar.* tarball version (from debian/changelog): 4.0.4 uscan info: Last orig.tar.* tarball version (dversionmangled): 4.0.4
    uscan info: Requesting URL:
    https://github.com/kyan001/ping3/tags
    uscan info: Matching pattern:
    (?:(?:https://github.com)?\/kyan001\/ping3\/)?https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
    uscan info: Found the following matching hrefs on the web page (newest first):
    https://github.com/kyan001/ping3/archive/refs/tags/v4.0.4.tar.gz (4.0.4) index=4.0.4-1
    https://github.com/kyan001/ping3/archive/refs/tags/v4.0.4.zip (4.0.4) index=4.0.4-0
    https://github.com/kyan001/ping3/archive/refs/tags/v4.0.0.tar.gz (4.0.0) index=4.0.0-1
    https://github.com/kyan001/ping3/archive/refs/tags/v4.0.0.zip (4.0.0) index=4.0.0-0
    [... more ...]
    uscan info: Looking at $base = https://github.com/kyan001/ping3/tags with
    $filepattern = https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)) found
    $newfile = https://github.com/kyan001/ping3/archive/refs/tags/v4.0.4.tar.gz
    $newversion = 4.0.4
    $lastversion = 4.0.4
    uscan info: Matching target for downloadurlmangle: https://github.com/kyan001/ping3/archive/refs/tags/v4.0.4.tar.gz
    uscan info: Upstream URL(+tag) to download is identified as https://github.com/kyan001/ping3/archive/refs/tags/v4.0.4.tar.gz
    uscan info: Filename (filenamemangled) for downloaded file: v4.0.4.tar.gz
    uscan info: Newest version of python-ping3 on remote site is 4.0.4, local version is 4.0.4
    uscan info: => Package is up to date from:
    => https://github.com/kyan001/ping3/archive/refs/tags/v4.0.4.tar.gz
    uscan info: Scan finished
    -----------------

    Fun (or ironically) enough, I spent quite lot of time to avoid the
    "mangle" that some examples had (to avoid a lintian tag, I think), and
    I tried to use the API - JSON from GitHub (with problems) until I ended
    up using the "Tags".

    I'm interested in...:
    -Why does it work in my system and not in https://qa.debian.org/cgi-bin/watch?pkg=python-ping3
    -How to fix it? :-)

    Thank you very much!

    --
    Carles Pina i Estany
    https://carles.pina.cat

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEth6/Zob9uGYomaJ+qAKIT2ClX4EFAmU4PJAACgkQqAKIT2Cl X4HaGw/9HsP7WyUZzSAOvfQoKJFoNov5V87UG+4S6kvKxDhbO9vDdDLPQwrhr1Rt +yL+f5ur9KvYuJuXXTchOSClJoyOaied+j/8Q1pO7GXFoKkI5hSxh54gkjLyvxfw Dj03i3JNXYbF4URDUcsuLjCsp2OZHwTwwf/b5F3ds3OH6jnPrru51iK+klh/6ekJ JFcuo30epkDXBlzdMCmfpio/mSWPCPWdpnHpMrOvkeWFz6TwrnIRa8akPa80BFjQ Vl/IJeKCDuCRCy5XGUNqU4ndwpljCv8IUnLjDK5L+5soe3JMiZoaAGTRE2p52JUn TT++n7ymCcUg1LbXNV+e1H7cFkOt/hEyyMUTYOGimGdEEZwDzDntIyeW+bpu59/I gZlPONqxUUMCPTTtRNS+shb3DqNTNprX0q0YKYiu1JyiVPjxDp/RhzynnsHLgIQJ GXaLMMVeLKkbipn5OWBQJRTqw7FcXs9Poe8rkFE/SV68Thx0JvS16saGgoJdLuJU IMAVCkMlUBw9T4LjU61BkYkPn9T/1aO7mbLO5jc8Mzb0SYU6ryVDk0PZneBx6OeO +EEcil28JiyDuxsL3Maf2H1/FCmIXLU/iwpFzAJ18lTJ/alMKoabPDbmmSb7BUt1 JZNoF8OzX7fFn76xv5DmQCm59vSRhg4Z0rHFE5d4F90gOYfywPk=
    =2Gul
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carles Pina i Estany@21:1/5 to Andreas Beckmann on Wed Oct 25 08:02:40 2023
    Hi,

    Andreas Beckmann wrote:

    status: error
    warnings: In debian/watch no matching files for watch line https://github.com/kyan001/ping3/tags https://github.com/kyan001/ping3/archive/refs/tags/(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))

    The expansion of @ANY_VERSION@ does not contain 'v?' in the older
    uscan version running on the server, while it does on the newer uscan
    you used locally:

    Oh right!

    Do you know which uscan version? Is it from Bullseye? Is to give a test
    before uploading it again.


    BTW, the uscan manpage suggests this format for github (filenamemangle omitted to match your example):

    version=4
    https://github.com/<user>/<project>/tags \
    (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@

    i.e. wildcards for the protocol, host and path parts and 'v?' version prefix

    Might just use this one... but I'd like to give a test with the same
    version.

    Thank you!

    --
    Carles Pina i Estany
    https://carles.pina.cat

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEth6/Zob9uGYomaJ+qAKIT2ClX4EFAmU4vZAACgkQqAKIT2Cl X4G4Aw//SvFxLki0Zc0tzkxGW5ybU44YYo16q2FpuViL6hohjxBUWAVGTCAYvBzs U2VIZqAKT6pViQ/RfogmdeeA2n89tIr6nbg9VYweKS9VAPfxmjreu9BGdTvq7A+i W68kFGL/9jOzvwOOEQ+qY8F/kW9DZ7oJFOZvX6FDpS61eHvXo0vK9XT1AwQR2iOV CfjULspIXFj/1vsSwhX7Z1nQpVgDydD+8HmNpBsvwm0W2scFhHnCLi+mgXAj4chz WteT1DapfaNLe2kYccxydwACOtMTKBVFrYQMWrWO3zujmLRng3KgNrQGOUKGrRSV GD0U3BHqvTLWFyI6nMdvJcYaiwwLSQ1oBZ30F1EOleEhhea1ijBBULO3nFxi/1Wq tsaPZM5FT49pQpdxml/JhFxqGODvTnYIM3YH3MtlPHmtAkMHGshN3Ts76j8WWyg2 Z7V6wyKYRxNF0ym0wDEng2O/DWupQRHrPiSHpfKRYKI7bJrRDoYktboRCXiJ/oiD wuDJuCSQHABHSD50B3cwrmVBXvo7+7X5/FHgdOH70pOiaN7RyqwZmz14wC0b95KS Twroygwhyn2h6n8ABm8yHFDuIXnU7acmtA71xNTeHIBjohMAwXTIKW3mkbc8+cDO yxDPH0wPmJr/ffpwCC4Yh2oiuIFn9TSd6QPaBy6WD7Gl30uS+S0=
    =yNja
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)