Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall/lib/profiles.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 0e76ba3d..4e14ea67 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -20,7 +20,13 @@ def list_profiles(base='./profiles/'):
for root, folders, files in os.walk(base):
for file in files:
if os.path.splitext(file)[1] == '.py':
- cache[file] = os.path.join(root, file)
+ description = ''
+ with open(os.path.join(root, file), 'r') as fh:
+ first_line = fh.readline()
+ if first_line[0] == '#':
+ description = first_line.strip()
+
+ cache[file] = {'path' : os.path.join(root, file), 'description' : ''}
break
return cache