Commit Graph
2 Commits
Author SHA1 Message Date
Christian Manivong 40cb888da7 feat: each package's architecture, 0.28.0 (NetOrk/netork#2907)
driver / lint (pull_request) Successful in 16s
driver / standard (pull_request) Successful in 18s
driver / lowest (pull_request) Successful in 33s
driver / types (pull_request) Successful in 1m12s
driver / test (3.12) (pull_request) Successful in 1m21s
driver / test (3.13) (pull_request) Successful in 1m10s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Successful in 1m12s
CI / driver (pull_request) Successful in 2m5s
driver / publish (pull_request) Skipped
A multiarch host lists one name twice: libc6 for amd64 and for i386,
glibc for x86_64 and for i686. get_packages now reads dpkg's
${Architecture} and rpm's %{ARCH}, before the summary that stays last,
and reports it as PackageDict.architecture (napalm-device-types
4.59.0, the new floor). apk and pacman leave it out.

_rpm no longer postpones its annotations, so source_rpm is optional at
runtime too.
2026-12-05 01:19:00 +01:00
Christian Manivong 024f68c543 fix(packages): leave removed packages with leftover config out of apt
dpkg-query -W also lists packages that were removed but whose
configuration dpkg keeps (state rc), and the driver marked every line
installed: old kernels and a removed agent showed up as installed
software. The query now asks for db:Status-Abbrev and drops packages
that are not installed or only left their configuration; held, unpacked
and half-configured packages keep counting, their files are on disk.

The dpkg query and its parse move to napalm_linux/_dpkg.py, a pure
function under strict mypy, which keeps linux.py inside its line count.

Closes #17
2026-11-01 21:48:05 +01:00