Watch file results

component: main
distribution: debian
last_check: 2022-11-26 00:51:50.880647
release: sid
source: raritan-json-rpc-sdk
status: error
version: 4.0.20+ds-1
warnings: In debian/watch no matching files for watch line https://www.raritan.com/support/product/pdu-g4/ (.+)-sdk-(.+)\.zip
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, \
      dversionmangle=s/\+ds(\.?\d+)?$//, \
      uversionmangle=s/(.+)\/pdu-g4\///; \
                     s/\/(.+)$//" \
      https://www.raritan.com/support/product/pdu-g4/ (.+)-sdk-(.+)\.zip