]> git.ipfire.org Git - pakfire.git/commit
repo: Fix file structure
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Aug 2023 15:37:33 +0000 (15:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Aug 2023 15:56:19 +0000 (15:56 +0000)
commit6c0217d3139dc86085227c7fd936efcf589282e8
tree9a4a2a8c425ae37063a048ed7e154e81af39f573
parent509aaad2e3666a1c25e950c58ff9307619e3b693
repo: Fix file structure

Because it is possible to have multiple builds with the same nevra in
the same repository, we need to store packages in a subdirectory to be
able to uniquely identify them. That is also helpful when we want to
avoid downloading a package when expecting a different UUID.

This patch changes that packages will now be put into some subdirectory
structure so multiple archives with the same name can coexist.

The downloader and caching mechanism for repositories had to be tweaked
to honour the subdirectory structure.

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