File: test-bug-745046-candidate-propagation-fails

package info (click to toggle)
apt 3.1.12
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 22,736 kB
  • sloc: cpp: 71,048; sh: 31,750; xml: 5,553; perl: 217; python: 197; ansic: 191; makefile: 41
file content (58 lines) | stat: -rwxr-xr-x 2,245 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"

setupenvironment
configarchitecture 'amd64'

insertinstalledpackage 'gedit' 'amd64' '1'

insertpackage 'unstable' 'gedit' 'amd64' '1'
insertpackage 'experimental' 'gedit' 'amd64' '2' 'Depends: common (>= 2)'

setupaptarchive

testfailureequal "Reading package lists...
Building dependency tree...
Selected version '2' (experimental [amd64]) for 'gedit'
Selected version '2' (experimental [amd64]) for 'gedit'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gedit : Depends: common (>= 2) but it is not installable
E: Unable to correct problems, you have held broken packages." aptget install gedit/experimental -sq=0 --solver internal

testfailureequal "Reading package lists...
Building dependency tree...
Selected version '2' (experimental [amd64]) for 'gedit'
Solving dependencies...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gedit : Depends: common (>= 2) but it is not installable
E: Unable to satisfy dependencies. Reached two conflicting decisions:
   1. gedit:amd64=2 is selected as an upgrade
   2. gedit:amd64=2 Depends common (>= 2)
      but none of the choices are installable:
      [no choices]" aptget install gedit/experimental -sq=0 --solver 3.0

insertinstalledpackage 'common' 'amd64' '2'

testsuccessequal "Reading package lists...
Building dependency tree...
Selected version '2' (experimental [amd64]) for 'gedit'
The following packages will be upgraded:
  gedit
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst gedit [1] (2 experimental [amd64])
Conf gedit (2 experimental [amd64])" aptget install gedit/experimental -sq=0