Never parse Version/Architecture tags in a Translation-$lang file
authorMichael Vogt <mvo@ubuntu.com>
Thu, 15 May 2014 12:37:33 +0000 (14:37 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Thu, 15 May 2014 12:37:33 +0000 (14:37 +0200)
commitbc1c9081e826c2c7f265f23d388ba868d5011f6a
tree4e4b234c82b24d6b7ab00bc31c1e974b3ac12320
parent2af2eb53e867bfcc0422aaf3c93c79eb2c93e9cc
Never parse Version/Architecture tags in a Translation-$lang file

Version/Architecture information in a Translation-$lang file is
not allowed, so don't try to parse it. This is a fix for a bugreport
where a Translation-en file contained the content of the regular
Packages file (probably due to local FS corruption). This lead to
strange error messages on file download.

Thanks to Thomas Reusch for the report.
apt-pkg/deb/debindexfile.cc
apt-pkg/deb/deblistparser.h
test/integration/test-apt-translation-has-no-packages [new file with mode: 0755]