~racb/ubuntu/quantal/apt/by_hash

« back to all changes in this revision

Viewing changes to test/integration/test-bug-624218-Translation-file-handling

  • Committer: Package Import Robot
  • Author(s): Steve Langasek, Michael Vogt, Steve Langasek
  • Date: 2012-06-11 22:36:16 UTC
  • mfrom: (1.4.47 sid)
  • Revision ID: package-import@ubuntu.com-20120611223616-1cctfc7qrxrx4vcu
Tags: 0.9.6ubuntu1
[ Michael Vogt ]
* merged from Debian, remaining changes:
  - use ubuntu keyring and ubuntu archive keyring in apt-key
  - run update-apt-xapian-index in apt.cron
  - support apt-key net-update and verify keys against master-keyring
  - run apt-key net-update in cron.daily
  - different example sources.list
  - APT::pkgPackageManager::MaxLoopCount set to 5000
  - apport pkgfailure handling
  - ubuntu changelog download handling
  - patch for apt cross-building, see http://bugs.debian.org/666772

[ Steve Langasek ]
* Drop upgrade handling for obsolete conffile /etc/apt/apt.conf.d/01ubuntu,
  removed in previous LTS.
* prepare-release: declare the packages needed as source build deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
aptget update -o Acquire::Languages=none | grep -q -e 'Translation' && msgfail || msgpass
43
43
rm -rf rootdir/var/lib/apt/lists
44
44
 
45
 
sed -i '/i18n\/Index$/ d' $(find aptarchive -name 'Release')
 
45
sed -i '/i18n\/Translation-.*$/ d' $(find aptarchive -name 'Release')
46
46
signreleasefiles
47
47
 
48
 
# we have to try as not every archive includes the i18n Index in the Release file - if it has one at all
49
 
msgtest 'Download no Translation- if forced language is non-existent' 'with not-announced Index'
50
 
aptget update -o Acquire::Languages=ast_DE | grep -q -e 'Translation-' && msgfail || msgpass
51
 
rm -rf rootdir/var/lib/apt/lists
52
 
 
53
 
find aptarchive -name 'Index' -delete
54
 
 
55
48
msgtest 'Download of en as forced language' 'without Index'
56
49
aptget update -o Acquire::Languages=en | grep -q -e 'Translation-en ' && msgpass || msgfail
57
50
rm -rf rootdir/var/lib/apt/lists