1
0
mirror of https://github.com/lutris/lutris synced 2024-07-05 16:38:42 +00:00

This is not legacy, I have no plans to deprecate it

This commit is contained in:
Mathieu Comandon 2016-10-31 09:57:59 -07:00
parent 61bdf56f50
commit 466f5bd725

View File

@ -135,7 +135,7 @@ class ScriptInterpreter(CommandsMixin):
def _get_installed_dependency(self, dependency):
"""Return whether a dependency is installed"""
game = pga.get_game_by_field(dependency, field='installer_slug')
# Legacy support of installers using game slug as requirement
if not game:
game = pga.get_game_by_field(dependency, 'slug')
if bool(game) and bool(game['directory']):