]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture "i386" | |
8 | ||
9 | insertinstalledpackage 'foo' 'i386' '1.0' | |
10 | insertpackage 'unstable' 'foo' 'i386' '2.0' 'Recommends: bar' | |
11 | ||
12 | setupaptarchive | |
13 | ||
14 | UPGRADE_KEEP="Reading package lists... | |
15 | Building dependency tree... | |
16 | Calculating upgrade... | |
17 | The following packages have been kept back: | |
18 | foo | |
19 | 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." | |
20 | testsuccessequal "$UPGRADE_KEEP" aptget upgrade -s | |
21 |