summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2010-03-01 11:26:57 +0200
committerTimo Teras <timo.teras@iki.fi>2010-03-01 11:27:27 +0200
commit4b29ea2a081d4002b7fea7e4caa0be760b3731af (patch)
tree4de2e630ac4acf7ab41aa4c6b0109b7c5025222a /src/cache.c
parent49f5d8cb012de00bc4c62f4352cc9d104dbbfedb (diff)
downloadapk-tools-4b29ea2a081d4002b7fea7e4caa0be760b3731af.tar.gz
apk-tools-4b29ea2a081d4002b7fea7e4caa0be760b3731af.tar.bz2
apk-tools-4b29ea2a081d4002b7fea7e4caa0be760b3731af.tar.xz
apk-tools-4b29ea2a081d4002b7fea7e4caa0be760b3731af.zip
cache: do not download files existing in local repository
wget:ing local files results in error and is useless.
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 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));