summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-605394-versioned-or-groups
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-11-29 21:43:07 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-11-29 21:43:07 +0100
commitc427b1e218e61bd1aacbddf9013e58b8aa445a7c (patch)
tree968669a06e487a9146038f1a975011edc2729acb /test/integration/test-bug-605394-versioned-or-groups
parent0957a13baf7c6d9a4093bfd6c7316fa018cb717b (diff)
* apt-pkg/algorithms.cc:
- mark all installed packages first without auto installation in a dist-upgrade to prefer upgrading packages instead of installing new packages in versioned or-groups (Closes: #605394)
Diffstat (limited to 'test/integration/test-bug-605394-versioned-or-groups')
-rwxr-xr-xtest/integration/test-bug-605394-versioned-or-groups25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/integration/test-bug-605394-versioned-or-groups b/test/integration/test-bug-605394-versioned-or-groups
new file mode 100755
index 000000000..0d7ad77f6
--- /dev/null
+++ b/test/integration/test-bug-605394-versioned-or-groups
@@ -0,0 +1,25 @@
+#!/bin/sh
+set -e
+
+local TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture "i386"
+setupaptarchive
+
+testequal "Reading package lists...
+Building dependency tree...
+The following packages will be upgraded:
+ php5 php5-cgi
+2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+Need to get 0 B/5715 kB of archives.
+After this operation, 0 B of additional disk space will be used.
+E: Trivial Only specified but this is not a trivial operation." aptget dist-upgrade --trivial-only
+
+msgtest "Solution process doesn't involve" 'apache2-mpm-prefork'
+
+if aptget dist-upgrade --trivial-only -o Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 2>&1 | grep apache2-mpm-prefork > /dev/null; then
+ msgfail
+else
+ msgpass
+fi