From 9f0dab208616ac5cfee713ea5823cb5f2a6f1ebc Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 15 Oct 2026 12:15:31 +0200 Subject: feat(updates): Slackware upgrades, new and removed packages Compared mirror against installed, as upgrade-all does, not against slackpkg's local ChangeLog: `slackpkg update` replaces that without installing anything, so a diff against it reads clean after an update that was never applied. New and removed come from the mirror's ChangeLog, the newest Added or Removed line deciding, so a package added and later upgraded still counts as new. Blacklisted build tags and directories are skipped, as slackpkg skips them. Co-Authored-By: Claude Sonnet 5.5 --- desktop/modules/updates/test_updatesctl.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop/modules/updates/test_updatesctl.py') diff --git a/desktop/modules/updates/test_updatesctl.py b/desktop/modules/updates/test_updatesctl.py index b9e3881..2bfe1a8 100644 --- a/desktop/modules/updates/test_updatesctl.py +++ b/desktop/modules/updates/test_updatesctl.py @@ -178,5 +178,10 @@ assert rows(d["apps"]) == { "GIMP": ("flatpak", "3.0.4", "3.0.6"), }, d["apps"] +sw = d["slackware"] +assert sw["upgrade"] == [{"name": "glibc", "from": "2.44-3", "to": "2.44-4"}], sw +assert sw["new"] == [{"name": "libtatsu", "version": "1.0.5-1"}], sw +assert sw["removed"] == [{"name": "dhcp", "date": "2026-10-14"}], sw + shutil.rmtree(tmp) print("ok") -- cgit v1.2.3