]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: lib/bb/utils: no need to unsetenv when manipulating os.environ
authorRoss Burton <ross.burton@intel.com>
Mon, 18 Jul 2016 22:10:41 +0000 (23:10 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2016 09:23:45 +0000 (10:23 +0100)
Doing both os.unsetenv(foo) and then del os.environ[foo] is pointless as del
will call unsetenv automatically.

(Bitbake rev: a4463e2ff3c7d234320176d671719243292f1af0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/utils.py

index 3f1c645de3b9d1426a7ee848d787141fd24654ab..aad26a0f1e66be5bc1fe5b44e01ee712a87c2ec1 100644 (file)
@@ -599,7 +599,6 @@ def filter_environment(good_vars):
             continue
 
         removed_vars[key] = os.environ[key]
-        os.unsetenv(key)
         del os.environ[key]
 
     # If we spawn a python process, we need to have a UTF-8 locale, else python's file