fix(default-flatpaks): Explicitly remove Fedora flatpaks
They -should- already get removed when the Fedora remote is, but in case any remain, remove them.
This commit is contained in:
parent
121cbe2c06
commit
e0efeaba0f
1 changed files with 8 additions and 0 deletions
|
|
@ -17,6 +17,14 @@ if grep -qz 'fedora' <<< $(flatpak remotes); then
|
|||
/usr/bin/fedora-third-party disable
|
||||
flatpak remote-delete fedora --force
|
||||
flatpak remote-delete fedora-testing --force
|
||||
|
||||
# Remove flatpak apps from origin fedora
|
||||
FEDORA_FLATPAKS=$(flatpak list --app --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
|
||||
flatpak remove --system --noninteractive ${FEDORA_FLATPAKS[@]}
|
||||
|
||||
# Remove flatpak runtimes from origin fedora
|
||||
FEDORA_FLATPAKS=$(flatpak list --runtime --columns=application,arch,branch,origin | grep -w 'fedora' | awk '{print $1"/"$2"/"$3}')
|
||||
flatpak remove --system --noninteractive ${FEDORA_FLATPAKS[@]}
|
||||
fi
|
||||
|
||||
REPO_INFO="/etc/flatpak/system/repo-info.yml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue