Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 21:40:17 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 21:40:17 +0000
commit4fd1e96d24e55bd414547cb6401d2ea1efbadf7a (patch)
treef0c79912d73ae756f4013d17e7bc8dfed5faed40 /archinstall
parent547043409798734b69820f06eee8df516e1cc9d6 (diff)
Profile filename confusion between list_profiles() and @path declaration.
Diffstat (limited to 'archinstall')
-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