diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-12-12 15:14:25 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-12-12 15:16:52 +0200 |
commit | 8e7fd3e06f300bd76b659db1164da1ee12f16870 (patch) | |
tree | 1ca6d6f34264d69026ae44f38cb5f41824a584fa /test/installif5.test | |
parent | 0700e8318fc5c88c5965320f6085f973e25dbeda (diff) | |
download | apk-tools-8e7fd3e06f300bd76b659db1164da1ee12f16870.tar.gz apk-tools-8e7fd3e06f300bd76b659db1164da1ee12f16870.tar.bz2 apk-tools-8e7fd3e06f300bd76b659db1164da1ee12f16870.tar.xz apk-tools-8e7fd3e06f300bd76b659db1164da1ee12f16870.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.
Diffstat (limited to 'test/installif5.test')
-rw-r--r-- | test/installif5.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/installif5.test b/test/installif5.test new file mode 100644 index 0000000..a0c707b --- /dev/null +++ b/test/installif5.test @@ -0,0 +1,8 @@ +@ARGS +--test-repo installif1.repo +add dam dam-babel cmd:babel +@EXPECT +(1/3) Installing dam-babel (1) +(2/3) Installing dam (1) +(3/3) Installing dam1-babel (1) +OK: 0 MiB in 0 packages |