mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 18:08:22 -04:00
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
|
@ -99,6 +99,7 @@ def get_devices(pkgbuilds: Optional[dict[str, Pkgbuild]] = None, lazy: bool = Tr
|
|||
global _device_cache, _device_cache_populated
|
||||
use_cache = _device_cache_populated and lazy
|
||||
if not use_cache:
|
||||
logging.info("Searching PKGBUILDs for device packages")
|
||||
if not pkgbuilds:
|
||||
pkgbuilds = discover_pkgbuilds(lazy=lazy, repositories=['device'])
|
||||
_device_cache.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue