Files
flatpak/app
Matthew Leeds b0ee220d02 uninstall: Refine definition of what is used
Currently it's possible for Flatpak to consider a runtime used but
consider its Locale extension unused when executing `flatpak uninstall
--unused`, which doesn't make much sense.  This only happens if the
runtime is indirectly used; in other words it's used as a related ref
rather than directly as the runtime of an installed app.

In the case of Endless, `com.endlessm.EknServicesMultiplexer` uses all
versions of `com.endlessm.apps.Platform`, and since v1 isn't used by any
app on this computer its Locale extension is considered unused:

$ flatpak list --runtime -a | grep com.endlessm.apps.Platform.*/x86_64/1
com.endlessm.apps.Platform.Locale/x86_64/1      system,partial
com.endlessm.apps.Platform/x86_64/1     system
$ flatpak uninstall --unused
Uninstalling from system:
com.endlessm.apps.Platform.Locale/x86_64/1
Is this ok [y/n]:

This commit changes the behavior of uninstall --unused so that when
something is considered used because it's a related ref, we recursively
check its own related refs so they are considered used too.

Closes: #2103
Approved by: alexlarsson
2018-10-01 10:58:21 +00:00
..
2018-07-08 10:05:37 +00:00
2018-07-08 10:05:37 +00:00
2018-08-13 21:31:09 +00:00
2018-07-08 10:05:37 +00:00
2018-09-26 09:02:42 +00:00
2018-09-26 09:02:42 +00:00
2018-09-26 09:02:42 +00:00
2018-09-26 09:02:42 +00:00
2018-09-26 09:02:42 +00:00
2018-09-26 09:02:42 +00:00
2018-07-08 10:05:37 +00:00
2018-09-26 09:02:42 +00:00
2018-07-08 10:05:37 +00:00
2018-07-08 10:05:37 +00:00
2018-07-08 10:05:37 +00:00
2018-09-26 09:02:42 +00:00
2018-07-08 10:05:37 +00:00
2018-07-08 10:05:37 +00:00
2018-09-26 09:02:42 +00:00
2018-07-08 10:05:37 +00:00