GDAL: fix Autotools build (#46946)
This commit is contained in:
parent
74a93c04d8
commit
0ff980ae87
@ -641,7 +641,7 @@ def with_or_without(self, name, variant=None, package=None, attribute=None):
|
|||||||
if not variant:
|
if not variant:
|
||||||
variant = name
|
variant = name
|
||||||
|
|
||||||
if variant not in self.pkg.variants:
|
if not self.pkg.has_variant(variant):
|
||||||
msg = '"{}" is not a variant of "{}"'
|
msg = '"{}" is not a variant of "{}"'
|
||||||
raise KeyError(msg.format(variant, self.name))
|
raise KeyError(msg.format(variant, self.name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user