diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-15 12:15:31 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-15 12:15:31 +0200 |
| commit | 9f0dab208616ac5cfee713ea5823cb5f2a6f1ebc (patch) | |
| tree | 10948b48c78aa1a045d3e71f581afd8cd0e158b7 /desktop/modules/updates/test_updatesctl.py | |
| parent | 1bd9d56fe86c519e72c4f36b0523dab422a7907e (diff) | |
| download | quickshell-9f0dab208616ac5cfee713ea5823cb5f2a6f1ebc.tar.gz quickshell-9f0dab208616ac5cfee713ea5823cb5f2a6f1ebc.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/updates/test_updatesctl.py')
| -rw-r--r-- | desktop/modules/updates/test_updatesctl.py | 5 |
1 files changed, 5 insertions, 0 deletions
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") |
