Fix static requirements search bad logic

This commit is contained in:
Pedro Algarvio 2019-03-15 11:38:10 +00:00
parent 45a3e4a0ca
commit 0cb641e3c5
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -65,8 +65,9 @@ def _install_requirements(session, *extra_requirements):
# Install requirements
distro_requirements = None
for distro_key in distro_keys:
distro_requirements = os.path.join(REPO_ROOT, 'requirements', 'static', '{}.txt'.format(distro_key))
if os.path.exists(distro_requirements):
_distro_requirements = os.path.join(REPO_ROOT, 'requirements', 'static', '{}.txt'.format(distro_key))
if os.path.exists(_distro_requirements):
distro_requirements = _distro_requirements
break
if distro_requirements is not None:
_requirements_files = [distro_requirements]