Commit 1ae6f9d9 authored by Natanael Copa's avatar Natanael Copa
Browse files

db: fix bug in apk_repository_update()

parent 8a47023d
......@@ -955,7 +955,7 @@ int apk_repository_update(struct apk_database *db, struct apk_repository *repo)
if (r < 0)
return r;
snprintf(tmp2, sizeof(tmp2), "%svar/lib/apk/%s",
snprintf(tmp, sizeof(tmp), "%svar/lib/apk/%s",
db->root, repo->cache);
if (rename(tmp2, tmp) < 0)
return -errno;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment