From 2053f69223beff9b6ddb6c2cb3d6187ed857da41 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 13 Aug 2011 11:47:48 +0200 Subject: [PATCH] [entropy.client] move os.getenv() to static region --- libraries/entropy/client/interfaces/dep.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/entropy/client/interfaces/dep.py b/libraries/entropy/client/interfaces/dep.py index e34435fbc..a0a2aef40 100644 --- a/libraries/entropy/client/interfaces/dep.py +++ b/libraries/entropy/client/interfaces/dep.py @@ -1738,6 +1738,8 @@ class CalculatorsMixin: return True return False + DISABLE_NEEDED_SCANNING = os.getenv("ETP_DISABLE_ELF_NEEDED_SCANNING") + def _generate_reverse_dependency_tree(self, matched_atoms, deep = False, recursive = True, empty = False, system_packages = True, elf_needed_scanning = True): @@ -1749,7 +1751,7 @@ class CalculatorsMixin: # experimental feature, make possible to override it # please remove in future. - if os.getenv("ETP_DISABLE_ELF_NEEDED_SCANNING"): + if self.DISABLE_NEEDED_SCANNING: elf_needed_scanning = False if const_debug_enabled():