From 7d63db18b15c6183564dfc3e211622b8f46aeb35 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Sun, 30 Oct 2022 23:57:13 +0300 Subject: [PATCH] compatibility_matrix: fix omnios link for fresh releases Signed-off-by: George Melikov --- scripts/compatibility_matrix.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/compatibility_matrix.py b/scripts/compatibility_matrix.py index c9f411c..e238667 100755 --- a/scripts/compatibility_matrix.py +++ b/scripts/compatibility_matrix.py @@ -103,9 +103,14 @@ def omniosce(): versions.sort() versions = versions[-2:] for ver in versions: + # omnios backported man pages group change + if int(ver.lstrip('r')) >= 151042: + group = 7 + else: + group = 5 sources[ver] = ('https://raw.githubusercontent.com/omniosorg/' - 'illumos-omnios/{}/usr/src/man/man5/' - 'zpool-features.5'.format(ver)) + 'illumos-omnios/{ver}/usr/src/man/man{group}/' + 'zpool-features.{group}'.format(ver=ver, group=group)) return sources @@ -179,7 +184,7 @@ for name, sub in sources.items(): continue man = c.read().decode('utf-8') except HTTPError: - LOG.debug('Failed with HTTPError') + LOG.debug('%s (%s): %s failed with HTTPError', name, ver, url) continue found[ver] = url for line in man.split('\n'):