From 91c4cc6c188bc20eddcd40e9b9b30f20dc2f36cf Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Thu, 7 Apr 2011 14:14:27 +0300 Subject: fetch: fix fetching of packages with arch --- src/fetch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/fetch.c') 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; -- cgit v1.2.3-60-g2f50