migration fixes
This commit is contained in:
@@ -41,6 +41,15 @@ install_pipx_apps() {
|
||||
return $status
|
||||
}
|
||||
|
||||
# Reinstall gext if missing or broken. Its pipx venv goes stale when Arch
|
||||
# upgrades Python, and migrations run before updates.d/60-pipx.sh rebuilds it.
|
||||
ensure_gext() {
|
||||
~/.local/bin/gext --version &> /dev/null && return 0
|
||||
echo "gext missing or broken, reinstalling..."
|
||||
pipx uninstall gnome-extensions-cli &> /dev/null || true
|
||||
pipx install --python "$(which python3)" gnome-extensions-cli --system-site-packages
|
||||
}
|
||||
|
||||
# Function to remove pacman/AUR packages if installed
|
||||
remove_packages() {
|
||||
local packages=("$@")
|
||||
|
||||
Reference in New Issue
Block a user