diff options
author | Phaedrus Leeds <matthew.leeds@endlessm.com> | 2020-08-07 14:33:25 -0700 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2020-08-31 16:29:03 +0200 |
commit | a70b7a76282ca4e6a8ef797c20cb78a75f09ed24 (patch) | |
tree | 584d6caa8d2199eebf0ab5b5a2cefac729826428 | |
parent | 47c88706e0657a20d4b44133f06072460d90c071 (diff) | |
download | flatpak-a70b7a76282ca4e6a8ef797c20cb78a75f09ed24.tar.gz |
installation: Clarify that SDKs aren't considered used
The docs claimed that SDK runtimes are considered used even if there is
no app using them or runtime for which they are the SDK, but the
implementation does not match that.
We could change the implementation to always consider SDK runtimes used,
but that would be problematic because some apps use an SDK as their
runtime, and in that case the runtime would persist forever after the
app is uninstalled, instead of eventually being garbage collected by the
subsequent commits to this one.
-rw-r--r-- | common/flatpak-installation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/flatpak-installation.c b/common/flatpak-installation.c index 3957d5f2..f18622fb 100644 --- a/common/flatpak-installation.c +++ b/common/flatpak-installation.c @@ -2924,8 +2924,8 @@ find_used_refs (FlatpakDir *dir, * * Lists the installed references that are not 'used'. * - * A reference is used if it is either an application, or an sdk, - * or the runtime of a used ref, or an extension of a used ref. + * A reference is used if it is either an application, + * or the runtime or sdk of a used ref, or an extension of a used ref. * Pinned runtimes are also considered used; see flatpak-pin(1) and * flatpak_installation_list_pinned_refs(). * |