db: fix bug in apk_repository_update()
parent
8a47023d3e
commit
1ae6f9d972
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue