From e682e6596c101d634b3780a98773c8433b3baadb Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Fri, 21 Oct 2011 15:24:24 -0400 Subject: solver, pkg: implement versioned conflicts One can now say in dependency "!foo<2" which means, that if foo is installed, it needs to be >=2, but it's not a required dependency. --- test/conflict.repo | 19 +++++++++++++++++++ test/conflict1.expect | 2 ++ test/conflict2.expect | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 test/conflict.repo create mode 100644 test/conflict1.expect create mode 100644 test/conflict2.expect (limited to 'test') diff --git a/test/conflict.repo b/test/conflict.repo new file mode 100644 index 0000000..a95658c --- /dev/null +++ b/test/conflict.repo @@ -0,0 +1,19 @@ +C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE= +P:a +V:1 +S:1 +I:1 +D:!b<2 + +C:Q1C4uoV7SdMdDhYg4OCVmI71D8HIA= +P:b +V:1 +S:1 +I:1 + +C:Q1hdUpqRv5mYgJEqW52UmVsvmyysE= +P:b +V:2 +S:1 +I:1 + diff --git a/test/conflict1.expect b/test/conflict1.expect new file mode 100644 index 0000000..03c6d67 --- /dev/null +++ b/test/conflict1.expect @@ -0,0 +1,2 @@ +Installing b (2) +Installing a (1) diff --git a/test/conflict2.expect b/test/conflict2.expect new file mode 100644 index 0000000..250f942 --- /dev/null +++ b/test/conflict2.expect @@ -0,0 +1,2 @@ +1 unsatisfiable dependencies (solution with 2 names) +world: b<2 -- cgit v1.2.3-70-g09d2