]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-712435-missing-descriptions
4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'amd64'
9 PACKAGESTANZA
='Version: 0.9.7.8
11 Maintainer: APT Development Team <deity@lists.debian.org>
13 Filename: pool/main/a/apt/apt_0.9.7.8_amd64.deb
14 MD5sum: 3a622acda41620df50aa22a9fac6f32e'
16 DESCRIPTION
='Description: commandline package manager
17 This APT has Super Cow Powers.'
19 TRANSDESCRIPTION
='Description-en: commandline package manager
20 This APT has translated Super Cow Powers.'
22 echo "Package: apt-normal
25 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
27 Package: apt-both-below
31 Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
33 Package: apt-both-middle
36 Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
41 Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
48 Description-md5: cccccccccccccccccccccccccccccccc
52 Description-md5: dddddddddddddddddddddddddddddddd
55 $PACKAGESTANZA" > aptarchive
/Packages
59 testequal
"Package: apt-normal
62 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
63 " aptcache show apt
-normal
65 # displaying the translated Description would be equally valid,
66 # but we assume only one description is in a Packages file and
67 # so we prefer "Description" over "Description-*" currently.
68 for variant
in 'below' 'middle' 'top'; do
69 testequal
"Package: apt-both-$variant
72 Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
73 " aptcache show apt
-both-$variant
76 testequal
"Package: apt-trans
79 Description-md5: cccccccccccccccccccccccccccccccc
80 " aptcache show apt
-trans
82 testequal
"Package: apt-md5
84 Description-md5: dddddddddddddddddddddddddddddddd
85 " aptcache show apt
-md5
87 testequal
"Package: apt-none
89 " aptcache show apt
-none