Message ID | 20210502222632.165399-1-hauke@hauke-m.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | backports: handle HTTP 404 from ubuntu mainline storage | expand |
diff --git a/devel/backports-update-manager b/devel/backports-update-manager index 2ef82854..4d63de8c 100755 --- a/devel/backports-update-manager +++ b/devel/backports-update-manager @@ -38,7 +38,11 @@ def make_version_tuple(ver): return sver def parse_ubuntu_ppa_page(version, baseurl): - html = urlopen(baseurl).read() + try: + html = urlopen(baseurl).read() + except: + return None + if b'Build for amd64 failed' in html: return None pkgs = re.findall(b'href="linux-headers-[^"]*-generic_[^"]*\.deb"', html)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- devel/backports-update-manager | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)