Watch file results

component: main
debian_mangled_uversion: 4.2.0
debian_uversion: 4.2.0+ds
distribution: debian
last_check: 2024-04-24 00:24:50.189056
release: sid
source: raritan-json-rpc-sdk
status: up to date
upstream_url: https://cdn1.raritan.com/download/pdu-g2/4.2.0/pdu-json-rpc-sdk-040200-50274.zip
upstream_version: 4.2.0
version: 4.2.0+ds-1
watch_file:
# See uscan(1) for format

version=4

# Upstream is redirecting to their CDN to something like
# ...
#  https://cdn1.raritan.com/download/pdu-g2/4.0.10/pdu-json-rpc-sdk-040010-48891.zip
#
# So we "just" need disassemble the URL which is returning by uversionmangle
# as we can use the folder name before the file name, this reflects the
# version we need for comparing against the Debian version.

opts="repacksuffix=+ds, \
      compression=xz, \
      dversionmangle=s/\+ds(\.?\d+)?$//, \
      uversionmangle=s/(.+)\/pdu-g2\///; \
                     s/\/(.+)$//" \
https://www.raritan.com/support/product/pdu-g2/ (.+)-sdk-(.+)\.zip