GDAL: fix Autotools build (#46946)

This commit is contained in:
Adam J. Stewart 2024-10-13 22:15:24 +02:00 committed by GitHub
parent 74a93c04d8
commit 0ff980ae87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))