parallel_emerge: catch 404 errors when getting packages

BUG=none
TEST=run build_packages on --board=tegra2_dev-board-opengl right now, since binhost hasn't been populated yet.

Review URL: http://codereview.chromium.org/3035058
This commit is contained in:
Olof Johansson 2010-08-09 11:11:13 -07:00
parent 072ea6f30e
commit 7e9226f08a

View File

@ -819,7 +819,13 @@ class DepGraphGenerator(object):
url = binhost_url + "/Packages"
prebuilt_pkgs = {}
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()