aboutsummaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-03-01 15:43:41 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-03-01 15:43:41 +0200
commitec383c4f6825b93d454e7349f4bb9051c48827a2 (patch)
treec37caa73ce214813f0fde3db4b1c2a6e8a50999f /src/cache.c
parent02e6dcfa186ed64a3e44293a8c7fb1a4fa40d70b (diff)
downloadapk-tools-ec383c4f6825b93d454e7349f4bb9051c48827a2.tar.gz
apk-tools-ec383c4f6825b93d454e7349f4bb9051c48827a2.tar.bz2
apk-tools-ec383c4f6825b93d454e7349f4bb9051c48827a2.tar.xz
db: fetch files from proper URL using Arch if available
packages without arch tag, will not get the additional patch component to URL.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 5311815..ca50137 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -58,7 +58,7 @@ 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, pkg->arch, repo->url, item, cacheitem,
APK_SIGN_VERIFY_IDENTITY);
}