From 4b29ea2a081d4002b7fea7e4caa0be760b3731af Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Mon, 1 Mar 2010 11:26:57 +0200 Subject: [PATCH] cache: do not download files existing in local repository wget:ing local files results in error and is useless. --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index f9bcb6f..85d9777 100644 --- a/src/cache.c +++ b/src/cache.c @@ -56,7 +56,7 @@ static int cache_download(struct apk_database *db) continue; repo = apk_db_select_repo(db, pkg); - if (repo == NULL) + if (repo == NULL || apk_url_local_file(repo->url) != NULL) continue; apk_pkg_format_plain(pkg, APK_BLOB_BUF(item));