]>
Commit | Line | Data |
---|---|---|
953b348c MV |
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... | |
2a884c61 | 16 | Calculating upgrade... |
953b348c MV |
17 | The following packages have been kept back: |
18 | foo | |
19 | 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." | |
25b86db1 | 20 | testsuccessequal "$UPGRADE_KEEP" aptget upgrade -s |
953b348c | 21 |