From 16e0f6df7f0d632976d788fb3829280a39dabfaf Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 15 Nov 2021 13:35:59 +0200 Subject: fix fetching of depdencies only packages Remove the APK_REPOSITORY_CACHED bit from dependencies only packages (that is, installed_size == 0). For fetch, the problem is that apk_db_select_repo() would return the cache repository, but the package would not be there. Update also the locations needed to handle these packages correctly without the cached repository bit being set. --- src/app_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app_cache.c') diff --git a/src/app_cache.c b/src/app_cache.c index b744f25..95eae7a 100644 --- a/src/app_cache.c +++ b/src/app_cache.c @@ -91,7 +91,7 @@ static int cache_download(struct cache_ctx *cctx, struct apk_database *db) foreach_array_item(change, changeset.changes) { pkg = change->new_pkg; - if ((pkg == NULL) || (pkg->repos & db->local_repos)) + if (!pkg || (pkg->repos & db->local_repos) || !pkg->installed_size) continue; repo = apk_db_select_repo(db, pkg); -- cgit v1.2.3-70-g09d2