index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-08-20 19:47:39 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-08-20 19:47:39 +0000 |
commit | f6f5875892e4ec6978323026b5f7819ddce1bb83 (patch) | |
tree | b71535281671592f7966ab0f24812a9bc34558b4 /archinstall | |
parent | 056b800c8eb42c4112dce54bd1a7336d52ead2ab (diff) |
-rw-r--r-- | archinstall/lib/profiles.py | 4 |
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index b63a26c4..2ed367b9 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -26,7 +26,7 @@ def list_profiles(base='./profiles/', filter_irrelevant_macs=True): tailored = False if os.path.splitext(file)[1] == '.py': if len(mac := re.findall('(([a-zA-z0-9]{2}[-:]){5}([a-zA-z0-9]{2}))', file)): - if filter_irrelevant_macs and mac[0][0] not in local_macs:: + if filter_irrelevant_macs and mac[0][0] not in local_macs: continue tailored = True @@ -36,7 +36,7 @@ def list_profiles(base='./profiles/', filter_irrelevant_macs=True): if first_line[0] == '#': description = first_line[1:].strip() - cache[file] = {'path' : os.path.join(root, file), 'description' : description, 'tailored' : tailored} + cache[file[:-2]] = {'path' : os.path.join(root, file), 'description' : description, 'tailored' : tailored} break return cache |