]>
Commit | Line | Data |
---|---|---|
8f418981 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' | |
081c9d44 | 11 | cp rootdir/var/lib/dpkg/status dpkg.status |
8f418981 MV |
12 | insertinstalledpackage 'foo' 'all' '1.0' |
13 | ||
1df24acf | 14 | setupaptarchive --no-update |
8f418981 | 15 | |
5ad0096a | 16 | testfailuremsg 'E: The update command takes no arguments' apt update arguments |
081c9d44 | 17 | |
25b86db1 | 18 | testsuccessequal "1 package can be upgraded. Run 'apt list --upgradable' to see it." apt update -q |
081c9d44 DK |
19 | |
20 | cp dpkg.status rootdir/var/lib/dpkg/status | |
21 | insertinstalledpackage 'foo' 'all' '2.0' | |
25b86db1 | 22 | testsuccessequal 'All packages are up to date.' apt update -q |