diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-12-22 14:40:01 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-12-22 15:07:30 +0200 |
commit | 5234fc4b57610283f9b08b6eecac2549a5f8576a (patch) | |
tree | 0197f73bbac274248ae915a39303345d04bbec38 /src/commit.c | |
parent | 4476e36b7dd5083211d061adb0a75c18748df8c8 (diff) | |
download | apk-tools-5234fc4b57610283f9b08b6eecac2549a5f8576a.tar.gz apk-tools-5234fc4b57610283f9b08b6eecac2549a5f8576a.tar.bz2 apk-tools-5234fc4b57610283f9b08b6eecac2549a5f8576a.tar.xz apk-tools-5234fc4b57610283f9b08b6eecac2549a5f8576a.zip |
commit: consider also provides_priority for error analysis
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index e5c0962..645e74d 100644 --- a/src/commit.c +++ b/src/commit.c @@ -657,7 +657,8 @@ static void discover_name(struct apk_name *name, int pkg_state) foreach_array_item(p, name->providers) { int state = pkg_state; if (!p->pkg->marked) continue; - if (state == STATE_PRESENT && !is_name_concrete(p->pkg, name)) + if (state == STATE_PRESENT && !p->pkg->provider_priority && + !is_name_concrete(p->pkg, name)) state = STATE_VIRTUAL_ONLY; if (p->pkg->state_int & state) continue; p->pkg->state_int |= state; |