diff options
author | Michael Vogt <mvo@debian.org> | 2014-10-29 16:32:42 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-10-29 16:32:42 +0100 |
commit | 18593cf75189c0d6d3cbbf729013c875398218ca (patch) | |
tree | f840ff81174861fd7e1c6f19c30c2099d4e8182e /test/integration/test-bug-624218-Translation-file-handling | |
parent | e845cde33c5d13a0e2dd924a388705a0738d4f96 (diff) |
Only support Translation-* that are listed in the {In,}Release file
Handle Translation-* files exactly like Packages files (with the
expection that it is ok if a download of them fails). Remove all
"guessing" on apts side. This will elimimnate a bunch of errors
releated to captive portals and similar. Its also more correct
and removes another potential attack vector.
Diffstat (limited to 'test/integration/test-bug-624218-Translation-file-handling')
-rwxr-xr-x | test/integration/test-bug-624218-Translation-file-handling | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/integration/test-bug-624218-Translation-file-handling b/test/integration/test-bug-624218-Translation-file-handling index d3c5b08ac..4ec30ee09 100755 --- a/test/integration/test-bug-624218-Translation-file-handling +++ b/test/integration/test-bug-624218-Translation-file-handling @@ -47,16 +47,9 @@ translationslisted() { translationslisted 'with full Index' -# only compressed files available (as it happens on CD-ROM) -sed -i '/i18n\/Translation-[^.]*$/ d' $(find aptarchive -name 'Release') -signreleasefiles - -translationslisted 'with partial Index' - - # no records at all about Translation files (fallback to guessing) -sed -i '/i18n\/Translation-.*$/ d' $(find aptarchive -name 'Release') -signreleasefiles +find aptarchive -name 'Release' -or -name 'InRelease' | xargs rm -f +configallowinsecurerepositories "true"; msgtest 'Download of en as forced language' 'without Index' aptget update -o Acquire::Languages=en | grep -q -e 'Translation-en ' && msgpass || msgfail |