cache: do not download files existing in local repository

wget:ing local files results in error and is useless.
cute-signatures
Timo Teras 2010-03-01 11:26:57 +02:00
parent 49f5d8cb01
commit 4b29ea2a08
1 changed files with 1 additions and 1 deletions

View File

@ -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));