mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
build: make deps_neg work with multiple dependencies
Previous code only worked id len(deps_neg) was 1.
This commit is contained in:
parent
fa620ffc95
commit
6565c0d979
@ -86,8 +86,8 @@ the autodetection check failed.".format(self.identifier)
|
||||
def check_negative_dependencies(self):
|
||||
if 'deps_neg' in self.attributes:
|
||||
deps = set(self.attributes['deps_neg'])
|
||||
if deps <= self.satisfied_deps:
|
||||
conflicting_deps = deps & self.satisfied_deps
|
||||
if len(conflicting_deps) > 0:
|
||||
self.skip("{0} found".format(", ".join(conflicting_deps)), 'CYAN')
|
||||
raise DependencyError
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user