diff options
author | Timo Teräs <timo.teras@iki.fi> | 2018-11-02 17:12:20 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-11-02 17:12:20 +0200 |
commit | 31338affc2cd3e095949e987fdf3716ce7b376ab (patch) | |
tree | 770a988ed8ad55ff9a149abdae37910738adea1d /src | |
parent | 22abda2af479de22cfaf9ff7cea0b92c39bfdaed (diff) | |
download | apk-tools-31338affc2cd3e095949e987fdf3716ce7b376ab.tar.gz apk-tools-31338affc2cd3e095949e987fdf3716ce7b376ab.tar.bz2 apk-tools-31338affc2cd3e095949e987fdf3716ce7b376ab.tar.xz apk-tools-31338affc2cd3e095949e987fdf3716ce7b376ab.zip |
don't report virtual packages as masked
Diffstat (limited to 'src')
-rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 9c32b63..4a94ff5 100644 --- a/src/commit.c +++ b/src/commit.c @@ -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 { |