diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-04-07 14:14:27 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-04-07 14:14:27 +0300 |
commit | 91c4cc6c188bc20eddcd40e9b9b30f20dc2f36cf (patch) | |
tree | 68e8708f50b81ee95d59a71dec2c46bd1aae07c8 /src/fetch.c | |
parent | 4a16ddbc1051c62e97e6a3332375051c8a06dc5b (diff) | |
download | apk-tools-91c4cc6c188bc20eddcd40e9b9b30f20dc2f36cf.tar.gz apk-tools-91c4cc6c188bc20eddcd40e9b9b30f20dc2f36cf.tar.bz2 apk-tools-91c4cc6c188bc20eddcd40e9b9b30f20dc2f36cf.tar.xz apk-tools-91c4cc6c188bc20eddcd40e9b9b30f20dc2f36cf.zip |
fetch: fix fetching of packages with arch
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fetch.c b/src/fetch.c index 09e3b9d..72b481d 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -120,9 +120,7 @@ static int fetch_package(struct fetch_ctx *fctx, if (apk_flags & APK_SIMULATE) return 0; - snprintf(url, sizeof(url), "%s%s%s", repo->url, - repo->url[strlen(repo->url)-1] == '/' ? "" : "/", - pkgfile); + apk_repo_format_filename(url, sizeof(url), repo->url, pkg->arch, pkgfile); if (fctx->flags & FETCH_STDOUT) { fd = STDOUT_FILENO; |