summaryrefslogtreecommitdiff
path: root/test/installif1.repo
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-12-12 15:14:25 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-01-09 10:06:01 +0200
commit11a523d2eb9bd546064f256126e9351943fb9e57 (patch)
treee6acec2357b599b8a5c3e7659e46521cd0fd400c /test/installif1.repo
parentb8750c57f16a441df61eaa01b08baf8ac1a732ff (diff)
downloadapk-tools-11a523d2eb9bd546064f256126e9351943fb9e57.tar.gz
apk-tools-11a523d2eb9bd546064f256126e9351943fb9e57.tar.bz2
apk-tools-11a523d2eb9bd546064f256126e9351943fb9e57.tar.xz
apk-tools-11a523d2eb9bd546064f256126e9351943fb9e57.zip
solver: fix potential install_if processing failure, fixes #8237
In discovery phase, there was logic to not process packages multiple times. However, that logic failed to account the package's depth and install_if state for the name being processed. This caused install_if processing failure in certain topologies of the dependency graph. Adds also a test case that should catch this issue reliably. (cherry picked from commit 8e7fd3e06f300bd76b659db1164da1ee12f16870) (cherry picked from commit 685795f24c7d37298c363bb70dc98e3a95ef4c81)
Diffstat (limited to 'test/installif1.repo')
-rw-r--r--test/installif1.repo20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/installif1.repo b/test/installif1.repo
index 09b6760..3990209 100644
--- a/test/installif1.repo
+++ b/test/installif1.repo
@@ -46,3 +46,23 @@ I:1
D:app
i:app bar
+C:Q1/hQ3fH2AzuTwJVGOz+keypXhXKY=
+P:dam
+V:1
+S:1
+I:1
+
+C:Q1/hQ3fH2AzuTwJVGfz+keypXhXKY=
+P:dam-babel
+V:1
+S:1
+I:1
+p:cmd:babel
+
+C:Q1/hQ3fH2AguTwJVGOz+keypXhXKY=
+P:dam1-babel
+V:1
+S:1
+I:1
+i:dam dam-babel
+p:cmd:babel