[PATCH] backports: handle HTTP 404 from ubuntu mainline storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 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



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux