Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-21 14:19:39 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-21 14:19:39 +0100
commitb81d5e054d59df523a30f997e0ae66eb2c7107ff (patch)
tree06c9c83433097732de7cfc28ecb73f3b6ac5ade2 /archinstall/lib
parentdf1ed2034d17ff15bb321ff2c306c9e8aaedeec6 (diff)
Debugging tainted namespace on profile modules.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/profiles.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 92c9a140..bafa76df 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -129,6 +129,9 @@ class Script():
if namespace:
self.namespace = namespace
+ if '.py' in self.namespace:
+ raise KeyError("Debugging")
+
self.spec = importlib.util.spec_from_file_location(self.namespace, self.path)
imported = importlib.util.module_from_spec(self.spec)
sys.modules[self.namespace] = imported