4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 insertpackage 'unstable' 'foo' 'all' '1'
10 insertpackage 'unstable' 'bar' 'amd64' '1'
11 insertpackage 'unstable' 'bar' 'i386' '1'
12 insertsource 'unstable' 'foo' 'all' '1'
14 sed -e 's#^Description-en:#Description-de:#' \
15 aptarchive/dists/unstable/main/i18n/Translation-en > aptarchive/dists/unstable/main/i18n/Translation-de
17 setupaptarchive --no-update
20 # the framework modifies some configs to ensure testability,
21 # at the expense of creating an environment which doesn't always
22 # reflect apts "normal
" behavior on a "normal
" system
23 echo 'Acquire::IndexTargets::Randomized "true
";
24 Acquire::Languages { "environment
"; "en
"; "de
"; };
25 ' > rootdir/etc/apt/apt.conf.d/restore-simplicity
27 testempty aptget indextargets
28 testsuccess aptget update
29 testequal 'main/source/Sources
30 main/binary-amd64/Packages
31 main/binary-all/Packages
32 main/i18n/Translation-en
33 main/i18n/Translation-de' aptget indextargets --format '$(METAKEY)'