diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-07-17 10:53:01 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-08-10 17:27:59 +0200 |
commit | bb0f6a34c4cebea7884de828c011dc85765ff820 (patch) | |
tree | 809a630ba606bac6b9050c97f9ecbccc7562244f /test/integration | |
parent | ecc138f858fab61e0b888d3d13854d1422c3432b (diff) |
just-in-time creation for (explicit) negative deps
Now that we deal with provides in a more dynamic fashion the last
remaining problem is explicit dependencies like 'Conflicts: foo' which
have to apply to all architectures, but creating them all at the same
time requires us to know all architectures ending up in the cache which
isn't needed to be the same set as all foreign architectures.
The effect is visible already now through as this prevents the creation
of a bunch of virtual packages for arch:all packages and as such also
many dependencies, just not very visible if you don't look at the stats…
Git-Dch Ignore
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/test-apt-cache | 15 | ||||
-rwxr-xr-x | test/integration/test-bug-590041-prefer-non-virtual-packages | 2 | ||||
-rwxr-xr-x | test/integration/test-multiarch-allowed | 7 |
3 files changed, 8 insertions, 16 deletions
diff --git a/test/integration/test-apt-cache b/test/integration/test-apt-cache index a8ddfd889..1d90eed5c 100755 --- a/test/integration/test-apt-cache +++ b/test/integration/test-apt-cache @@ -66,7 +66,6 @@ testsuccessequal 'foo testsuccessequal 'foo Depends: bar Conflicts: <foobar> - Conflicts: <foobar:i386> |Recommends: <cool> Recommends: <cooler>' aptcache depends foo --implicit testsuccessequal 'foo @@ -76,7 +75,6 @@ testsuccessequal 'foo testsuccessequal 'foo Depends: bar Conflicts: <foobar> - Conflicts: <foobar:i386> Recommends: <cool>' aptcache depends foo -o APT::Cache::ShowOnlyFirstOr=1 --implicit testsuccessequal 'foo Depends: bar @@ -86,7 +84,6 @@ testsuccessequal 'foo testsuccessequal 'foo Depends: bar Conflicts: <foobar> - Conflicts: <foobar:i386> |Recommends: <cool> (>= 2) Recommends: <cooler> (<< 5)' aptcache depends foo -o APT::Cache::ShowVersion=1 --implicit testsuccessequal 'foo @@ -94,15 +91,13 @@ testsuccessequal 'foo Conflicts: <foobar>' aptcache depends foo --no-recommends testsuccessequal 'foo Depends: bar - Conflicts: <foobar> - Conflicts: <foobar:i386>' aptcache depends foo --no-recommends --implicit + Conflicts: <foobar>' aptcache depends foo --no-recommends --implicit testsuccessequal 'foo Depends: bar' aptcache depends foo --important --implicit testsuccessequal 'foo Conflicts: <foobar>' aptcache depends foo --important --no-depends --conflicts testsuccessequal 'foo - Conflicts: <foobar> - Conflicts: <foobar:i386>' aptcache depends foo --important --no-depends --conflicts --implicit + Conflicts: <foobar>' aptcache depends foo --important --no-depends --conflicts --implicit testsuccessequal 'foo Depends: bar Conflicts: <foobar> @@ -118,17 +113,15 @@ bar testsuccessequal 'foo Depends: bar Conflicts: <foobar> - Conflicts: <foobar:i386> |Recommends: <cool> Recommends: <cooler> bar Depends: bar Breaks: foo - Breaks: <foo:i386> Replaces: foo + Breaks: <foo:i386> Replaces: <foo:i386> <foobar> -<foobar:i386> <cool> <cooler> <foo:i386>' aptcache depends foo --recurse --implicit @@ -151,8 +144,8 @@ testsuccessequal 'bar testsuccessequal 'bar Depends: bar Breaks: foo - Breaks: <foo:i386> Replaces: foo + Breaks: <foo:i386> Replaces: <foo:i386>' aptcache depends bar --implicit testsuccessequal 'specific Depends: <bar:i386> diff --git a/test/integration/test-bug-590041-prefer-non-virtual-packages b/test/integration/test-bug-590041-prefer-non-virtual-packages index 3bd7d436e..4e2a5142c 100755 --- a/test/integration/test-bug-590041-prefer-non-virtual-packages +++ b/test/integration/test-bug-590041-prefer-non-virtual-packages @@ -45,7 +45,7 @@ EOF setupaptarchive -testshowvirtual libc6:i386 +testnopackage libc6:i386 testsuccessequal "$pkglibc6" aptcache show libc6:armel testsuccessequal "$pkglibc6" aptcache show libc6 testsuccessequal "$pkglibdb1" aptcache show libdb1:i386 diff --git a/test/integration/test-multiarch-allowed b/test/integration/test-multiarch-allowed index a643cd2dc..2c791ca19 100755 --- a/test/integration/test-multiarch-allowed +++ b/test/integration/test-multiarch-allowed @@ -138,10 +138,8 @@ solveableinsinglearch2() { The following packages have unmet dependencies: hatesfoo : Conflicts: foo but 1 is to be installed E: Unable to correct problems, you have held broken packages." aptget install foo hatesfoo -s - testfailureequal "$BADPREFIX -The following packages have unmet dependencies: - hatesfooany : Conflicts: foo:any -E: Unable to correct problems, you have held broken packages." aptget install foo hatesfooany -s + # the message differs slightly between single and multiarch + testfailuremsg 'E: Unable to correct problems, you have held broken packages.' aptget install foo hatesfooany -s testfailureequal "$BADPREFIX The following packages have unmet dependencies: hatesfoonative : Conflicts: foo but 1 is to be installed @@ -155,6 +153,7 @@ E: Unable to correct problems, you have held broken packages." aptget install fo testfailureequal "$BADPREFIX The following packages have unmet dependencies: hatesfooany : Conflicts: foo:any + Conflicts: foo:any:i386 E: Unable to correct problems, you have held broken packages." aptget install foo:i386 hatesfooany -s testsuccessequal 'Reading package lists... Building dependency tree... |