Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: parallel_emerge

Issue 3035058: parallel_emerge: catch 404 errors when getting packages (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: sigh. tab fix Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: parallel_emerge
diff --git a/parallel_emerge b/parallel_emerge
index 35c089cdf5fcd0b3c004c7be2e34b25f19462aeb..2d7a97c0eefbe772753537b11566bff608ff5d31 100755
--- a/parallel_emerge
+++ b/parallel_emerge
@@ -813,7 +813,13 @@ class DepGraphGenerator(object):
url = binhost_url + "/Packages"
prebuilt_pkgs = {}
- f = urllib2.urlopen(url)
+ try:
+ f = urllib2.urlopen(url)
+ except urllib2.HTTPError as e:
+ if e.code == 404:
+ return {}
+ else:
+ raise
for line in f:
if line.startswith("CPV: "):
pkg = line.replace("CPV: ", "").rstrip()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698