diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 08:12:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 08:12:12 +0000 |
commit | 1ae6f9d972456ace0d3e4b099ba1933c93d58e88 (patch) | |
tree | b3e07ba18c7d38eef23dd155cddd084ec5e2cf91 /src | |
parent | 8a47023d3e74d50d4e4277f130c1be917f94db44 (diff) | |
download | apk-tools-1ae6f9d972456ace0d3e4b099ba1933c93d58e88.tar.gz apk-tools-1ae6f9d972456ace0d3e4b099ba1933c93d58e88.tar.bz2 apk-tools-1ae6f9d972456ace0d3e4b099ba1933c93d58e88.tar.xz apk-tools-1ae6f9d972456ace0d3e4b099ba1933c93d58e88.zip |
db: fix bug in apk_repository_update()
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 0957d2d..2af55bf 100644 --- a/src/database.c +++ b/src/database.c @@ -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; |