mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Check CX version against list rather than string
This commit is contained in:
parent
4bccd460ad
commit
cc5c7a90b8
|
@ -2218,7 +2218,7 @@ class LegendaryCLI:
|
||||||
|
|
||||||
logger.info('Checking available bottles...')
|
logger.info('Checking available bottles...')
|
||||||
available_bottles = self.core.get_available_bottles()
|
available_bottles = self.core.get_available_bottles()
|
||||||
usable_bottles = [b for b in available_bottles if b['cx_version'] == cx_version]
|
usable_bottles = [b for b in available_bottles if cx_version in b['cx_versions']]
|
||||||
logger.info(f'Found {len(usable_bottles)} bottle(s) usable with the selected CrossOver version. '
|
logger.info(f'Found {len(usable_bottles)} bottle(s) usable with the selected CrossOver version. '
|
||||||
f'(Total: {len(available_bottles)})')
|
f'(Total: {len(available_bottles)})')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue