Build and packaging library
  • Python 54.1%
  • Makefile 33.7%
  • Shell 12.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 6e2f341b33
lib.ExecContext: Clean up temp file in _put()
_put() writes the content into a temporary file with tee and, when
atomic is set, moves it to the target path with a final mv. The loop
over the command list sets tmp_file to None after each command, on the
assumption stated in the comment that the file has been moved at that
point - which is only true for the last command. When a chown, chmod,
or mv after the tee fails, the finally block finds tmp_file is None
and leaves the temporary file behind.

Reset tmp_file only after all commands have completed, so that the
finally block erases the temporary file whenever a step fails.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-22 10:07:58 +02: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 conf / scripts: Fix unprivileged "make install" 2026-08-18 17:27:32 +02:00
doc doc: Add subdir 2026-08-19 20:51:11 +02:00
make py-defs.mk: Honor PY_INSTALL_INIT_PY = false 2026-08-22 10:07:55 +02:00
scripts conf / scripts: Fix unprivileged "make install" 2026-08-18 17:27:32 +02:00
src lib.ExecContext: Clean up temp file in _put() 2026-08-22 10:07:58 +02:00
test lib.App: Add a root command slot 2026-08-17 12:53:05 +02:00
.gitignore cache.mk: Include from topdir.mk, not make.mk 2026-07-22 14:38:24 +02:00
HASH Release 1.0.0-256@suse-tumbleweed/x86_64 2026-08-20 23:34:24 +00:00
Makefile cache.mk: Include from topdir.mk, not make.mk 2026-07-22 14:38:24 +02:00
RELEASES Release 1.0.0-256@suse-tumbleweed/x86_64 2026-08-20 23:34:24 +00:00
VERSION Start version: 1.0.0-256 2026-08-20 23:11:14 +00:00