diff options
author | Thibault Saunier <thibault.saunier@collabora.com> | 2013-01-22 17:46:11 -0300 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-22 22:22:39 +0100 |
commit | 8a153a3d8057a9c316e3b159b512f34efcbbffa8 (patch) | |
tree | a85236cd7ea335ce51a130685e535e8a512d1750 | |
parent | cc0a29e6e5202387fb8993d6320a90feaf55ec09 (diff) |
build.py: do not check if None when we are working with empty dictionnary
self.append_env and self.new_env are indeed setted to {} in __init__ so
no way they would be None
-rw-r--r-- | cerbero/build/build.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cerbero/build/build.py b/cerbero/build/build.py index 363d839..52bc85f 100644 --- a/cerbero/build/build.py +++ b/cerbero/build/build.py @@ -265,12 +265,11 @@ class Autotools (MakefilesBase): if self.config.target is not None: self.configure_tpl += ' --target=%(target)s' - use_configure_cache = self.config.use_configure_cache if self.use_system_libs and self.config.allow_system_libs: use_configure_cache = False - if self.new_env is not None or self.append_env is not None: + if self.new_env or self.append_env: use_configure_cache = False if use_configure_cache and self.can_use_configure_cache: |