mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
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:
parent
072ea6f30e
commit
7e9226f08a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user