summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-lp1347721-dpkg-ordering
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-07-29 15:01:13 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-07-29 15:07:06 +0200
commit2f58969150b0daec1de407f61385ccf5b2065aa3 (patch)
tree1ae085c7efadf7b0d11c6c8811578f000199fbc9 /test/integration/test-bug-lp1347721-dpkg-ordering
parentd0554dd323752bf04735aac189d8e9fa713e30cc (diff)
Fix SmartConfigure to ignore ordering of packages that are already valid
With the change of SmartConfigure() in git commit 42d51f the ordering code was trying to re-order dependencies, even when at this point in time this was not needed. Now it will first check all targets of the given dependency and only if there is not a good one try to reorder and unpack/configure as needed. Closes: LP: #1347721
Diffstat (limited to 'test/integration/test-bug-lp1347721-dpkg-ordering')
-rwxr-xr-xtest/integration/test-bug-lp1347721-dpkg-ordering11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/test-bug-lp1347721-dpkg-ordering b/test/integration/test-bug-lp1347721-dpkg-ordering
new file mode 100755
index 000000000..cfe7a4df2
--- /dev/null
+++ b/test/integration/test-bug-lp1347721-dpkg-ordering
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture "i386"
+setupaptarchive
+
+# ensure we find a valid ordering
+testsuccess aptget dist-upgrade -s