don't report virtual packages as masked

cute-signatures
Timo Teräs 2018-11-02 17:12:20 +02:00
parent 22abda2af4
commit 31338affc2
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ static void print_pinning_errors(struct print_state *ps, struct apk_package *pkg
if (!(pkg->repos & db->available_repos)) {
label_start(ps, "masked in:");
apk_print_indented_fmt(&ps->i, "--no-network");
} else if (pkg->repos == BIT(APK_REPOSITORY_CACHED)) {
} else if (pkg->repos == BIT(APK_REPOSITORY_CACHED) && !(pkg->filename != NULL || pkg->installed_size == 0)) {
label_start(ps, "masked in:");
apk_print_indented_fmt(&ps->i, "cache");
} else {