]>
Commit | Line | Data |
---|---|---|
59e81cec MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture "i386" | |
9 | ||
10 | insertpackage 'unstable' 'foo' 'all' '2.0' 'Depends: foo-new-dependency' | |
11 | insertpackage 'unstable' 'foo-new-dependency' 'all' '2.0' | |
12 | insertinstalledpackage 'foo' 'all' '1.0' | |
13 | ||
14 | setupaptarchive | |
15 | ||
16 | APTARCHIVE=$(readlink -f ./aptarchive) | |
17 | ||
18 | # default is to allow new dependencies | |
33b813ce | 19 | testequal "The following NEW packages will be installed: |
59e81cec MV |
20 | foo-new-dependency |
21 | The following packages will be upgraded: | |
22 | foo | |
23 | 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
24 | Inst foo-new-dependency (2.0 unstable [all]) | |
25 | Inst foo [1.0] (2.0 unstable [all]) | |
26 | Conf foo-new-dependency (2.0 unstable [all]) | |
27 | Conf foo (2.0 unstable [all])" apt upgrade -qq -s | |
28 | ||
29 | # ensure | |
33b813ce | 30 | testequal "The following packages have been kept back: |
59e81cec MV |
31 | foo |
32 | 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." apt upgrade -qq -s --no-new-pkgs |