Files
Matthew White 13b1eeb0a1 transaction: Pinned packages override metadata autodelete directive
If both org.gnome.Sdk and org.gnome.Sdk.Docs are manually installed,
they have no dependents, and only org.gnome.Sdk.Docs is left pinned,
`flatpak uninstall --unused` should remove org.gnome.Sdk and all its
unused dependecies while keeping org.gnome.Sdk.Docs installed.

However, Flatpak still removes org.gnome.Sdk.Docs if org.gnome.Sdk's
metadata contains:

[Extension org.gnome.Sdk.Docs]
autodelete = true

This patch ensures that pinned packages will override the autodelete
metadata directive.  In this case, org.gnome.Sdk.Docs is spared from
uninstallation.

Thanks to Sebastian Wick (@swick) for reviewing the patch, and
suggesting variable initialization outside the loop that calls
flatpak_dir_ref_is_pinned():
https://github.com/flatpak/flatpak/pull/6859#pullrequestreview-5586932172
2026-10-24 17:33:45 +00:00
..
2019-02-25 18:12:30 +00:00
2026-01-21 17:58:19 +00:00
2026-01-05 21:16:15 +05:30
2023-09-04 13:25:32 +01:00
2018-05-24 11:59:52 +00:00