Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/profiles.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 1515c8ea..25b124fd 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -109,7 +109,10 @@ class Script():
# Try to locate all local or known URL's
examples = list_profiles()
- if f"{self.profile}.py" in examples:
+ if f"{self.profile}" in examples:
+ return self.localize_path(examples[f"{self.profile}.py"]['path'])
+ # TODO: Redundant, the below block shouldnt be needed as profiles are stripped of their .py, but just in case for now:
+ elif f"{self.profile}.py" in examples:
return self.localize_path(examples[f"{self.profile}.py"]['path'])
# Path was not found in any known examples, check if it's an abolute path