]> git.ipfire.org Git - pakfire.git/commit
xfer: Improve how we create temporary files
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Nov 2023 17:39:07 +0000 (17:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Nov 2023 17:39:07 +0000 (17:39 +0000)
commit90a6b8e4f704c3c628e810b2bcccf6b864b7ea24
treeb14cc74d7d8e7fd32e66c5bc6befbd5564533ab9
parent2ada916bd6ace33e6c8fc0cbc6076631206099a6
xfer: Improve how we create temporary files

We will now create invisible files in the destination file system which
gives us the advantage that the file will be written where it should be
and we won't have to move it later.

We can simply link the insivible file to become visible in the file
system on success. Otherwise we just close the file handle and the data
will be freed again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/dist.c
src/libpakfire/include/pakfire/xfer.h
src/libpakfire/repo.c
src/libpakfire/xfer.c