Files
david 5ed3df55e3
shellcheck / shellcheck (push) Failing after 14s
further checks
2026-11-04 10:05:50 -07:00

20 lines
649 B
Bash

#!/bin/bash
# shellcheck disable=SC2034
DESCRIPTION="update doesn't reinstall a package or Flatpak listed in skip-packages"
IMAGE=installed
TIER="pr"
scenario() {
assert_vm "remove Zoom and LibreOffice, and skip them" '
set -e
sudo flatpak uninstall --system --noninteractive us.zoom.Zoom
sudo pacman -Rns --noconfirm libreoffice-fresh
mkdir -p ~/.config/coredesktop
printf "%s\n" us.zoom.Zoom libreoffice-fresh >> ~/.config/coredesktop/skip-packages'
cd_update
assert_status 0
refute_vm "Zoom is still gone" 'flatpak info --system us.zoom.Zoom'
refute_vm "LibreOffice is still gone" 'pacman -Qi libreoffice-fresh'
}