]> git.saurik.com Git - apt.git/blame - test/integration/test-prefer-higher-priority-providers
fix priority sorting by prefering higher in MarkInstall
[apt.git] / test / integration / test-prefer-higher-priority-providers
CommitLineData
69335858
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'native'
8
9insertpackage 'unstable' 'foo' 'all' '1' 'Provides: stuff' 'important'
10insertpackage 'unstable' 'bar' 'all' '1' 'Provides: stuff' 'optional'
11insertpackage 'unstable' 'baz' 'all' '1' 'Provides: stuff' 'extra'
12insertpackage 'unstable' 'awesome' 'all' '1' 'Depends: stuff'
13
14setupaptarchive
15
16testequal 'Reading package lists...
17Building dependency tree...
18The following extra packages will be installed:
19 foo
20The following NEW packages will be installed:
21 awesome foo
220 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
23Inst foo (1 unstable [all])
24Inst awesome (1 unstable [all])
25Conf foo (1 unstable [all])
26Conf awesome (1 unstable [all])' aptget install awesome -s
27
28testequal 'Reading package lists...
29Building dependency tree...
30The following NEW packages will be installed:
31 awesome foo
320 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
33Inst foo (1 unstable [all])
34Inst awesome (1 unstable [all])
35Conf foo (1 unstable [all])
36Conf awesome (1 unstable [all])' aptget install awesome foo -s