]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdate: Run ListFeatures in offline mode
authorPhilip Withnall <pwithnall@gnome.org>
Thu, 9 Jul 2026 12:55:01 +0000 (13:55 +0100)
committerPhilip Withnall <pwithnall@gnome.org>
Tue, 14 Jul 2026 13:58:02 +0000 (14:58 +0100)
commita8a88fc3ba995de1b220f775ad03d164efeef1f7
tree1132bb85737a09892b722bd1241260f3caf82d67
parentf6cd12613788cb28363fc683957e9ce6583e0e39
sysupdate: Run ListFeatures in offline mode

Historically, the ListFeatures API (in both D-Bus and now varlink) was
run without an `--offline` flag. This appears like it’s an oversight, but
actually `verb_features()` always unconditionally loaded in offline
mode.

In any case, there doesn’t appear to be a reason for the context to be
online (i.e. for it to check sources for available updates). Features are
defined in local config files and are loaded by `read_features()`, which
is called in both offline and online mode.

When the varlink ListFeatures API was added, it was put into online mode
in order to match the lack of `--offline` argument in the existing D-Bus
API implementation. Change both of them to be explicitly in offline mode.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
src/sysupdate/sysupdate.c
src/sysupdate/sysupdated.c