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): def _get_installed_dependency(self, dependency):
"""Return whether a dependency is installed""" """Return whether a dependency is installed"""
game = pga.get_game_by_field(dependency, field='installer_slug') game = pga.get_game_by_field(dependency, field='installer_slug')
# Legacy support of installers using game slug as requirement
if not game: if not game:
game = pga.get_game_by_field(dependency, 'slug') game = pga.get_game_by_field(dependency, 'slug')
if bool(game) and bool(game['directory']): if bool(game) and bool(game['directory']):