summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-735967-lib32-to-i386-unavailable
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-03-11 10:31:44 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-03-23 12:38:43 +0100
commit21b3eac8f9ab8e12b43fa8998a5aa5465f29adc5 (patch)
treedb422dd2b15ee2ed0b4340207c58042c9a44b795 /test/integration/test-bug-735967-lib32-to-i386-unavailable
parentbe7ce6f1d067fa62b01685e48094f3f73c95189f (diff)
discard candidates via IsInstallOk to allow override
In commit 446551c8 I changed MarkInstall to discard the candidate if the candidate can't satisfy the dependency. This breaks interactive solvers like aptitude which can change the candidate on-the-fly later. In commit df77d8a5 I introduced this 'early' loop-breaking to begin with which can't be that helpful for interactive solvers as well, but makes perfect sense for non-interactives to stop them from exploring trees which can't be satisfied, but it isn't perfect as ideally we would check this before auto-installing the first dependency. This commit therefore moves the loop into its own IsInstallOk hook so that frontends can override this check if they want to and in exchange removes the loop-breaking from MarkInstall itself and does it before any dependency is installed. Closes: 740750
Diffstat (limited to 'test/integration/test-bug-735967-lib32-to-i386-unavailable')
-rwxr-xr-xtest/integration/test-bug-735967-lib32-to-i386-unavailable3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/test-bug-735967-lib32-to-i386-unavailable b/test/integration/test-bug-735967-lib32-to-i386-unavailable
index 4dbe1d25d..e9f3bf96d 100755
--- a/test/integration/test-bug-735967-lib32-to-i386-unavailable
+++ b/test/integration/test-bug-735967-lib32-to-i386-unavailable
@@ -12,6 +12,9 @@ insertpackage 'unstable' 'libnss-mdns' 'amd64,i386' '0.10-6' 'Multi-Arch: same
Breaks: lib32nss-mdns (<< 0.10-6)'
insertpackage 'unstable' 'libnss-mdns-i386' 'i386' '0.10-6' 'Multi-Arch: foreign
Depends: libnss-mdns'
+# introduce some dummies so that there are versions, but none works
+insertpackage 'unstable' 'libnss-mdns-i386' 'amd64' '0.1-6'
+insertpackage 'experimental' 'libnss-mdns-amd64' 'i386,amd64' '0.10-6' 'Provides: libnss-mdns-i386'
insertpackage 'unstable' 'foo' 'amd64' '1' 'Depends: libfoo'
insertpackage 'unstable' 'libfoo' 'amd64' '1' 'Depends: libfoo-bin'