Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apps: Fix reading AppStream metadata config
Commit 7bbf916 introduced a major bug: If the OS in os-release was not found in the iteration, get_config() would return the whole map instead of the default value. That crashed the page with `TypeError: names.forEach is not a function`. This is awkward to do correctly with .find(), especially due to modifying `val` as a side effect; iterate over `os_list` the good old `for` way instead. This was hidden by the test's manifest override leaving `appstream_config_packages` intact, so it was always taken from the real underlying OS. Override it as well. Cherry-picked from 0eeb475
- Loading branch information