From 4e9dc0bd534e7c8b480c428d53ed8a1cf92914af Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 8 Nov 2022 17:30:51 +0000 Subject: [PATCH] repo: Reset the package path after copying We do not want to leave any trace about where the package was copied from in the repository database. Signed-off-by: Michael Tremer --- src/libpakfire/repo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index f8597e9c2..2b72e3172 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -1568,10 +1568,8 @@ PAKFIRE_EXPORT int pakfire_repo_compose(struct pakfire* pakfire, const char* pat goto OUT; } - const char* repo_path = pakfire_path_relpath(path, destination_path); - - // Update package location relative to the repository directory - pakfire_package_set_string(package, PAKFIRE_PKG_PATH, repo_path); + // Reset the path + pakfire_package_set_string(package, PAKFIRE_PKG_PATH, NULL); OUT: if (archive) { -- 2.39.5