Commit b33b0680 authored by Timo Teräs's avatar Timo Teräs

db: fix package caching

(cherry picked from commit 1c6ab679)
parent 3dfc9d33
......@@ -2059,9 +2059,9 @@ static int apk_db_unpack_pkg(struct apk_database *db,
if (need_copy) {
if (r == 0)
renameat(db->cachetmp_fd, file, db->cache_fd, file);
renameat(db->cachetmp_fd, item, db->cache_fd, item);
unlinkat(db->cachetmp_fd, file, 0);
unlinkat(db->cachetmp_fd, item, 0);
if (r != 0) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment