Name libappindicator and zim-tools, not the names they provide
libappindicator-gtk3 and zimwriterfs aren't packages any more; they installed only because libappindicator and zim-tools provide them. But hampackremove couldn't match those names with what's installed, so it never removed them. zim-tools was already listed, so zimwriterfs goes. Updates rename the old names in the record of installed packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8023b04024
commit
bc536407c4
@@ -65,9 +65,12 @@ setup() {
|
||||
@test "update removes stale state from older HamPack versions" {
|
||||
mkdir -p "$HAMPACK_STATE"
|
||||
printf 'Kiwix-Desktop=2.75.1\nkiwix-desktop=2.5.1\nKiwix-Tools=3.8.2\n' > "$HAMPACK_STATE/.installed_versions"
|
||||
mark_installed $(all_hampack_packages)
|
||||
printf 'fldigi\nlibappindicator-gtk3\nzim-tools\nzimwriterfs\n' > "$HAMPACK_STATE/installed-packages"
|
||||
touch "$HOME/.local/bin/hampackupdate"
|
||||
run bash "$REPO/update.sh"
|
||||
[ "$(cat "$HAMPACK_STATE/.installed_versions")" = "kiwix-desktop=2.5.1" ]
|
||||
[ "$(cat "$HAMPACK_STATE/installed-packages")" = "$(printf 'fldigi\nlibappindicator\nzim-tools')" ]
|
||||
[ ! -e "$HOME/.local/bin/hampackupdate" ]
|
||||
grep -qx "sudo rm -f /etc/sudoers.d/hampack" "$STUB_LOG"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user