* [PATCH] backports: handle HTTP 404 from ubuntu mainline storage
@ 2021-05-02 22:26 Hauke Mehrtens
0 siblings, 0 replies; only message in thread
From: Hauke Mehrtens @ 2021-05-02 22:26 UTC (permalink / raw)
To: backports; +Cc: Hauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
devel/backports-update-manager | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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)
--
2.30.2
--
To unsubscribe from this list: send the line "unsubscribe backports" in
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-02 22:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-02 22:26 [PATCH] backports: handle HTTP 404 from ubuntu mainline storage Hauke Mehrtens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).