Commit 4b29ea2a authored by Timo Teräs's avatar Timo Teräs
Browse files

cache: do not download files existing in local repository

wget:ing local files results in error and is useless.
parent 49f5d8cb
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment