Commit | Line | Data |
---|---|---|
e41d3d7e DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture 'amd64' | |
9 | ||
10 | insertinstalledpackage 'gedit' 'amd64' '1' | |
11 | ||
12 | insertpackage 'unstable' 'gedit' 'amd64' '1' | |
13 | insertpackage 'experimental' 'gedit' 'amd64' '2' 'Depends: common (>= 2)' | |
14 | ||
15 | setupaptarchive | |
16 | ||
17 | testequal "Reading package lists... | |
18 | Building dependency tree... | |
19 | Selected version '2' (experimental [amd64]) for 'gedit' | |
20 | Some packages could not be installed. This may mean that you have | |
21 | requested an impossible situation or if you are using the unstable | |
22 | distribution that some required packages have not yet been created | |
23 | or been moved out of Incoming. | |
24 | The following information may help to resolve the situation: | |
25 | ||
26 | The following packages have unmet dependencies: | |
27 | gedit : Depends: common (>= 2) but it is not installable | |
28 | E: Unable to correct problems, you have held broken packages." aptget install gedit/experimental -sq=0 | |
29 | ||
30 | insertinstalledpackage 'common' 'amd64' '2' | |
31 | ||
32 | testequal "Reading package lists... | |
33 | Building dependency tree... | |
34 | Selected version '2' (experimental [amd64]) for 'gedit' | |
35 | The following packages will be upgraded: | |
36 | gedit | |
37 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
38 | Inst gedit [1] (2 experimental [amd64]) | |
39 | Conf gedit (2 experimental [amd64])" aptget install gedit/experimental -sq=0 |