1
0
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:
Stefano Pigozzi 2013-11-29 23:31:17 +01:00
parent fa620ffc95
commit 6565c0d979

View File

@ -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
conflicting_deps = deps & self.satisfied_deps
if len(conflicting_deps) > 0:
self.skip("{0} found".format(", ".join(conflicting_deps)), 'CYAN')
raise DependencyError