4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'i386'
9 cat > rootdir/etc/apt/preferences <<EOF
19 insertpackage 'testing,installed' 'foo' 'all' '1'
20 insertpackage 'testing-updates' 'foo' 'all' '2'
21 insertpackage 'unstable' 'foo' 'all' '3'
23 insertinstalledpackage 'bar' 'all' '1'
24 insertpackage 'testing' 'bar' 'all' '2'
28 testsuccessequal "Listing...
29 bar
/testing
2 all
[upgradable from
: 1]
30 N
: There is
1 additional version. Please use the
'-a' switch to see it
" apt list --upgradable
32 testsuccessequal "Listing...
33 bar
/testing
2 all
[upgradable from
: 1]
34 foo
/testing
,now
1 all
[installed
]" apt list