summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-03-16 14:51:44 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-03-16 14:56:13 +0200
commit1e17da9d704097523e337b64d2b0e424caa4a9ef (patch)
tree2454e273ce75830e31fe6c0f61a3b3763b101052 /src/cache.c
parent15badbfd975b2a898acaacfc943e4df2cb1c7864 (diff)
downloadapk-tools-1e17da9d704097523e337b64d2b0e424caa4a9ef.tar.gz
apk-tools-1e17da9d704097523e337b64d2b0e424caa4a9ef.tar.bz2
apk-tools-1e17da9d704097523e337b64d2b0e424caa4a9ef.tar.xz
apk-tools-1e17da9d704097523e337b64d2b0e424caa4a9ef.zip
db: handle arch similarly to stable branch
if package arch is not set, do not append anything to repository. if arch is set, it is appended to repository.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 60c7aeb..f827cc1 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -58,7 +58,8 @@ static int cache_download(struct apk_database *db)
continue;
apk_pkg_format_plain(pkg, APK_BLOB_BUF(item));
- apk_cache_download(db, repo->url, item, cacheitem,
+ apk_cache_download(db, repo->url, pkg->arch,
+ item, cacheitem,
APK_SIGN_VERIFY_IDENTITY);
}