diff options
author | Phaedrus Leeds <matthew.leeds@endlessm.com> | 2020-08-24 07:49:26 -0700 |
---|---|---|
committer | Phaedrus Leeds <mwleeds@endlessos.org> | 2020-09-17 22:39:56 -0700 |
commit | ba0b8f077a0af52a81a8adbe7843f4e3ba3c8744 (patch) | |
tree | 1f59089b52e23fe93c949879b2f919aa9d38243a /common/flatpak-transaction.h | |
parent | 26e6b4f5a8a4dc4d89f5fbc4dc79996e721ab5c5 (diff) | |
download | flatpak-ba0b8f077a0af52a81a8adbe7843f4e3ba3c8744.tar.gz |
app: Remove EOL unused runtimes in update command
In case a runtime becomes unused and then later becomes End-Of-Life, it
is currently not removed. So this commit removes such runtimes in the
update command, as discussed in #2639. A unit test is included.
I am planning to propose to use the FlatpakTransaction API added here in
gnome-software, so that users don't have to use the CLI at all for
runtimes to be cleaned up. KDE Discover already removes unused runtimes
periodically.
Diffstat (limited to 'common/flatpak-transaction.h')
-rw-r--r-- | common/flatpak-transaction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/flatpak-transaction.h b/common/flatpak-transaction.h index 8b9d4024..06efba46 100644 --- a/common/flatpak-transaction.h +++ b/common/flatpak-transaction.h @@ -238,6 +238,11 @@ void flatpak_transaction_set_parent_window (FlatpakTransaction *s FLATPAK_EXTERN const char * flatpak_transaction_get_parent_window (FlatpakTransaction *self); FLATPAK_EXTERN +void flatpak_transaction_set_include_unused_uninstall_ops (FlatpakTransaction *self, + gboolean include_unused_uninstall_ops); +FLATPAK_EXTERN +gboolean flatpak_transaction_get_include_unused_uninstall_ops (FlatpakTransaction *self); +FLATPAK_EXTERN void flatpak_transaction_add_dependency_source (FlatpakTransaction *self, FlatpakInstallation *installation); FLATPAK_EXTERN |