-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Generalize manifest config reading
We already use that on the storaged and apps pages, and going to add it to metrics as well. As storage and apps want to look at different os-release fields, start with a very generic "matchlist" API. We may later add an async convenience wrapper which reads os-release by itself and matches on common fields. While at it, factorize the duplicated config reading in apps to a get_packages() helper, consistently use `async`, and split the imports into "library" and "page specific".
- Loading branch information
1 parent
eb33baf
commit 45096b7
Showing
3 changed files
with
72 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters