Commit 1c6ab679 authored by Timo Teräs's avatar Timo Teräs

db: fix package caching

parent 0e450c5f
......@@ -2061,9 +2061,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