From d98ad1b2ed77943570548759ac3bdb9a61069a01 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:07:22 -0400 Subject: [PATCH] Brave: fix not uninstalling due to an apt quirk/functionality --- apps/Brave/uninstall | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/Brave/uninstall b/apps/Brave/uninstall index c54155349d..4ca8d3f1ff 100755 --- a/apps/Brave/uninstall +++ b/apps/Brave/uninstall @@ -2,4 +2,9 @@ purge_packages || exit 1 +#if the user uninstalls brave through pi-apps they expect it to actually be removed +#without the following line this will never be the case since brave-browser provides www-browser and man-db suggests www-browser and distros depend on man-db +#apt autoremove will not remove packages that are suggested or recommended and are currently installed +package_installed brave-browser && sudo apt purge -y --autoremove brave-browser | less_apt + remove_repofile_if_unused /etc/apt/sources.list.d/brave-browser-release.list "" /usr/share/keyrings/brave-browser-archive-keyring.gpg