diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-12 17:00:43 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-13 18:22:00 +0300 |
commit | 25ff68a87e3264b6dfdc846823d4912b4dd870b2 (patch) | |
tree | cd0d63eba30d233f52d5bed6e8a89cb64bf7de82 /test | |
parent | 59678309ea7350a159a3f5ee61c2fb5218dee6d5 (diff) | |
download | apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.tar.gz apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.tar.bz2 apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.tar.xz apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.zip |
solver: prune broken world dependencies with --force
mostly useful for reboot, when all packages are not available.
Diffstat (limited to 'test')
-rw-r--r-- | test/basic.repo | 7 | ||||
-rw-r--r-- | test/basic10.test | 8 | ||||
-rw-r--r-- | test/basic11.test | 8 |
3 files changed, 23 insertions, 0 deletions
diff --git a/test/basic.repo b/test/basic.repo index 4aace18..3ca23b3 100644 --- a/test/basic.repo +++ b/test/basic.repo @@ -24,3 +24,10 @@ V:2 S:1 I:1 +C:Q1hdUpqRv5mYgJEqW52UmVsvmeedd= +P:broken +V:1 +S:1 +I:1 +D:missing-dependency + diff --git a/test/basic10.test b/test/basic10.test new file mode 100644 index 0000000..f463e8c --- /dev/null +++ b/test/basic10.test @@ -0,0 +1,8 @@ +@ARGS +--test-repo basic.repo +--force +add a not-in-repo +@EXPECT +(1/2) Installing b (2) +(2/2) Installing a (2) +OK: 0 MiB in 0 packages diff --git a/test/basic11.test b/test/basic11.test new file mode 100644 index 0000000..24f7e1e --- /dev/null +++ b/test/basic11.test @@ -0,0 +1,8 @@ +@ARGS +--test-repo basic.repo +--force +add a broken not-in-repo +@EXPECT +(1/2) Installing b (2) +(2/2) Installing a (2) +OK: 0 MiB in 0 packages |