config: add listings of devices and flavours to config profile init aka prompt_profile() and --no-parse flag

This is slow-ish without SRCINFO caching
This commit is contained in:
InsanePrawn 2022-09-09 01:35:18 +02:00
parent 7b7caf3f37
commit f77aa4f2a2
3 changed files with 72 additions and 11 deletions

View file

@ -39,6 +39,7 @@ def get_flavours(lazy: bool = True):
global _flavours_cache, _flavours_discovered
if lazy and _flavours_discovered:
return _flavours_cache
logging.info("Searching PKGBUILDs for flavour packages")
flavours: dict[str, Flavour] = {}
pkgbuilds: dict[str, Pkgbuild] = discover_pkgbuilds(lazy=(lazy or not _flavours_discovered))
for pkg in pkgbuilds.values():