jw-pkg/test/unit/python/jw/pkg/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 302d3fe791
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m14s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m30s
CI / Packaging test (pull_request) Successful in 0s
lib.distros.debian.Distro._install(): Protect installed pkgs
apt 3.x distinguishes versions with the same version number by their
control metadata, so a .deb installed with dpkg -i that differs from the
repository's same-version package is regarded as a separate version, and
apt-get install of the package name "upgrades" it to the repository
version, replacing the installed package. If the installed package was
built from the source code repo's master, this is effectively a downgrade
and can break a CI run in currently unintended ways.

This commit detects same-version packages in apt-get's install todo list by
running apt-get -s install (simulate installation), parsing the output, and
removing those packages from the command line of the subsequent, real
install command.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-11-08 13:13:34 +01:00
..
App test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
Distro lib.ExecApp: Rename --pkg-filter to --path-filter 2026-11-07 19:37:27 +01:00
distros lib.distros.debian.Distro._install(): Protect installed pkgs 2026-11-08 13:13:34 +01:00
ec lib.ExecApp: Rename --pkg-filter to --path-filter 2026-11-07 19:37:27 +01:00
ExecApp test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
FcCache lib.FcCache: Add a write-through read cache 2026-10-17 12:17:21 +02:00
FcWrapper lib.FcWrapper: Add a delegating file context wrapper 2026-10-17 12:17:21 +02:00
file_types lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
FileContext lib.FileContext: Limit accessible addresses 2026-11-07 16:49:24 +01:00
Package lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
PathFilter lib.PathFilter / lib.pf: Add class + module 2026-11-07 16:47:55 +01:00
pf lib.pf.Pkg: Consolidate PackageFilter, drop PackageFilterString 2026-11-07 19:30:58 +01:00
pm lib.pm.*.install_packages(): Add functions 2026-10-28 20:14:55 +01:00
ProcFilter lib.ProcFilter: Add unit tests 2026-09-14 20:52:59 +02:00
ProjectConf test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
Result test: apply yapf formatting to test.py files 2026-07-04 07:35:17 +02:00
TarIo lib.TarIo: Add unit tests 2026-09-14 20:53:00 +02:00
Uri lib.ExecApp: Rename --pkg-filter to --path-filter 2026-11-07 19:37:27 +01:00
util lib.util.copy(): Require recursive for directories 2026-11-07 14:16:09 +01:00
version lib.version.Dependency.__version_boundaries(): Use Version.next() 2026-09-15 21:43:47 +02:00
Makefile test: Move unit tests below jw/pkg 2026-06-25 20:57:05 +02:00