Build and packaging library
  • Python 67.3%
  • Makefile 23.6%
  • Shell 9.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann afbdc2e4b0
lib.Package: Add and fill version field
Add a version field to the Package class and make query_packages() fill it.
It's very much distribution and package dependent what shape that version
has, so from Package's perspective, it's just a str-typed member.

Further improvements and fixes:

- Make query_packages() accept throw, defaulting to the previous behaviour,
  so a caller that wants to be prepared for a missing package / an empty
  result can pass throw = False.
- Make dpkg's _run() and run_dpkg_query() forward ec and the remaining
  keyword arguments on the sudo path, which dropped them before.

Add unit tests for the file type tree and its StatResult predicates.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.4.0
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-10-28 20:14:55 +01:00
.github/workflows ci.yaml: test-packaging.yaml@{master-test -> master} 2026-06-08 19:43:15 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf gitignore: Add web compilation artifacts 2026-10-24 18:58:02 +02:00
doc doc: Add subdir 2026-08-19 20:51:11 +02:00
make py-version.mk: Include common.mk 2026-10-24 21:50:24 +02:00
scripts pkg.sh: Use md5 for the dput hash option 2026-10-27 08:17:43 +01:00
src lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
test lib.Package: Add and fill version field 2026-10-28 20:14:55 +01:00
.gitignore run-success.mk: Record last successful run 2026-09-16 18:16:17 +02:00
HASH Release 1.0.0-282@suse-tumbleweed/x86_64 2026-10-27 08:04:12 +00:00
Makefile .gitignore: Run make gitignore 2026-09-13 23:09:26 +02:00
RELEASES Release 1.0.0-282@kali-rolling/amd64 2026-10-27 09:08:14 +00:00
VERSION Start version: 1.0.0-282 2026-10-27 08:03:09 +00:00