mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Fix static requirements search bad logic
This commit is contained in:
parent
45a3e4a0ca
commit
0cb641e3c5
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user