lib: Cache GsOsRelease
The data in /etc/os-release
isn’t going to change at runtime, and
various parts of gnome-software refer to it often. In particular,
gs_plugin_check_distro_id()
is called quite a lot.
Cache the parsed OS release information, so gnome-software doesn’t keep
opening and re-parsing /etc/os-release
.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Fixes: #1116 (closed)