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:
parent
7b7caf3f37
commit
f77aa4f2a2
3 changed files with 72 additions and 11 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue