4 TESTDIR
=$
(readlink
-f $
(dirname $0))
7 configarchitecture
'i386'
9 cat > rootdir
/etc
/apt
/preferences
<<EOF
19 insertinstalledpackage
'foo' 'all' '1'
20 insertpackage
'testing' 'foo' 'all' '1'
21 insertpackage
'testing-updates' 'foo' 'all' '2'
22 insertpackage
'unstable' 'foo' 'all' '3'
24 insertinstalledpackage
'bar' 'all' '1'
25 insertpackage
'testing' 'bar' 'all' '2'
30 bar/testing 2 all [upgradable from: 1]" apt list
--upgradable
33 bar/testing 2 all [upgradable from: 1]
34 foo/testing,now 1 all [installed]" apt list