diff options
author | Iñigo MartÃnez <inigomartinez@gmail.com> | 2017-11-20 22:19:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 22:19:42 +0100 |
commit | 732aae73c6f66f0578a151c57b24ce0bd9b63bf1 (patch) | |
tree | 30cc2c716456cd8cc5ca65a2b524126e2082daf3 | |
parent | 935ca128220806911821c5694e7856c0d343806a (diff) | |
download | meson-732aae73c6f66f0578a151c57b24ce0bd9b63bf1.zip meson-732aae73c6f66f0578a151c57b24ce0bd9b63bf1.tar.gz meson-732aae73c6f66f0578a151c57b24ce0bd9b63bf1.tar.bz2 |
Fix indentation
Fixed indentation on the use of the option `define-variable` with `pkg-config`.
-rw-r--r-- | mesonbuild/dependencies/base.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 38babfc..8815f1d 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -320,14 +320,14 @@ class PkgConfigDependency(ExternalDependency): options = ['--variable=' + variable_name, self.name] if 'define_variable' in kwargs: - definition = kwargs.get('define_variable', []) - if not isinstance(definition, list): - raise MesonException('define_variable takes a list') + definition = kwargs.get('define_variable', []) + if not isinstance(definition, list): + raise MesonException('define_variable takes a list') - if len(definition) != 2 or not all(isinstance(i, str) for i in definition): - raise MesonException('define_variable must be made up of 2 strings for VARIABLENAME and VARIABLEVALUE') + if len(definition) != 2 or not all(isinstance(i, str) for i in definition): + raise MesonException('define_variable must be made up of 2 strings for VARIABLENAME and VARIABLEVALUE') - options = ['--define-variable=' + '='.join(definition)] + options + options = ['--define-variable=' + '='.join(definition)] + options ret, out = self._call_pkgbin(options) variable = '' |