Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-21 14:51:59 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-21 14:51:59 +0100
commitec9059c039c3d47dc17e457cdc8a42549de87d5b (patch)
tree62e68638528de748dfae848708243b06390a6928
parentc1e8e6b58dd71f14f2720f532c327d29e8473dbe (diff)
Debugging tainted namespace on profile modules.
-rw-r--r--archinstall/lib/profiles.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 63d32afa..e22a3587 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -129,15 +129,11 @@ class Script():
if not namespace:
namespace = self.namespace
- if namespace in sys.modules:
- print(f"Found {self} in sys.modules, returning cached import.")
- return self
-
self.spec = importlib.util.spec_from_file_location(namespace, self.path)
imported = importlib.util.module_from_spec(self.spec)
sys.modules[namespace] = imported
- print(f"Imported {self} into sys.modules. Returning fresh copy.")
+ print(f"Imported {self} into sys.modules with namespace {namespace}.")
return self
def execute(self):