Watch file results

component: main
debian_mangled_uversion: 4.2.10
debian_uversion: 4.2.10+ds
distribution: debian
last_check: 2024-10-03 00:24:31.961246
release: sid
source: raritan-json-rpc-sdk
status: up to date
upstream_url: https://cdn1.raritan.com/download/pdu-g2/4.2.10/pdu-json-rpc-sdk-040210-50400.zip
upstream_version: 4.2.10
version: 4.2.10+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