waf: Fix the host version check.

This commit is contained in:
Chris Johns 2016-11-06 12:40:41 +11:00
parent 8330198edc
commit 25c0a23445

View File

@ -100,9 +100,9 @@ def local_packages():
host, version = host_name()
packages = None
if host in hosts:
for version in list(hosts[host].keys()):
if re.compile(version).match(version) is not None:
packages = hosts[host][version]
for hv in list(hosts[host].keys()):
if re.compile(hv).match(version) is not None:
packages = hosts[host][hv]
return packages
def configure_tests(conf):