]> git.saurik.com Git - apt.git/blob - test/integration/test-prefer-higher-priority-providers
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
[apt.git] / test / integration / test-prefer-higher-priority-providers
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'native'
8
9 insertpackage 'unstable' 'foo' 'all' '1' 'Provides: stuff' 'important'
10 insertpackage 'unstable' 'bar' 'all' '1' 'Provides: stuff' 'optional'
11 insertpackage 'unstable' 'baz' 'all' '1' 'Provides: stuff' 'extra'
12 insertpackage 'unstable' 'awesome' 'all' '1' 'Depends: stuff'
13
14 setupaptarchive
15
16 testequal 'Reading package lists...
17 Building dependency tree...
18 The following extra packages will be installed:
19 foo
20 The following NEW packages will be installed:
21 awesome foo
22 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
23 Inst foo (1 unstable [all])
24 Inst awesome (1 unstable [all])
25 Conf foo (1 unstable [all])
26 Conf awesome (1 unstable [all])' aptget install awesome -s
27
28 testequal 'Reading package lists...
29 Building dependency tree...
30 The following NEW packages will be installed:
31 awesome foo
32 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
33 Inst foo (1 unstable [all])
34 Inst awesome (1 unstable [all])
35 Conf foo (1 unstable [all])
36 Conf awesome (1 unstable [all])' aptget install awesome foo -s
37
38 testequal "Reading package lists...
39 Building dependency tree...
40 Package 'bar' is not installed, so not removed
41 Package 'baz' is not installed, so not removed
42 The following extra packages will be installed:
43 foo
44 The following NEW packages will be installed:
45 awesome foo
46 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
47 Inst foo (1 unstable [all])
48 Inst awesome (1 unstable [all])
49 Conf foo (1 unstable [all])
50 Conf awesome (1 unstable [all])" aptget install awesome bar- baz- -s
51
52 testequal "Reading package lists...
53 Building dependency tree...
54 Package 'foo' is not installed, so not removed
55 The following extra packages will be installed:
56 bar
57 The following NEW packages will be installed:
58 awesome bar
59 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
60 Inst bar (1 unstable [all])
61 Inst awesome (1 unstable [all])
62 Conf bar (1 unstable [all])
63 Conf awesome (1 unstable [all])" aptget install awesome foo- -s
64
65 testequal "Reading package lists...
66 Building dependency tree...
67 Package 'foo' is not installed, so not removed
68 Package 'baz' is not installed, so not removed
69 The following extra packages will be installed:
70 bar
71 The following NEW packages will be installed:
72 awesome bar
73 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
74 Inst bar (1 unstable [all])
75 Inst awesome (1 unstable [all])
76 Conf bar (1 unstable [all])
77 Conf awesome (1 unstable [all])" aptget install awesome foo- baz- -s
78
79 testequal "Reading package lists...
80 Building dependency tree...
81 Package 'foo' is not installed, so not removed
82 Package 'bar' is not installed, so not removed
83 The following extra packages will be installed:
84 baz
85 The following NEW packages will be installed:
86 awesome baz
87 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
88 Inst baz (1 unstable [all])
89 Inst awesome (1 unstable [all])
90 Conf baz (1 unstable [all])
91 Conf awesome (1 unstable [all])" aptget install awesome foo- bar- -s
92
93 testequal "Reading package lists...
94 Building dependency tree...
95 Package 'foo' is not installed, so not removed
96 Package 'bar' is not installed, so not removed
97 Package 'baz' is not installed, so not removed
98 Some packages could not be installed. This may mean that you have
99 requested an impossible situation or if you are using the unstable
100 distribution that some required packages have not yet been created
101 or been moved out of Incoming.
102 The following information may help to resolve the situation:
103
104 The following packages have unmet dependencies:
105 awesome : Depends: stuff
106 E: Unable to correct problems, you have held broken packages." aptget install awesome foo- bar- baz- -s