]>
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
57 Package: apt-intermixed
61 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
63 Package: apt-intermixed2
68 X-Foo-Flag: Something with a Description
69 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
72 Package: apt-intermixed3
77 X-Foo-Flag: Something with a Description
79 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" > aptarchive
/Packages
84 testequal
"Package: apt-normal
87 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
88 " aptcache show apt
-normal
90 # displaying the translated Description would be equally valid,
91 # but we assume only one description is in a Packages file and
92 # so we prefer "Description" over "Description-*" currently.
93 for variant
in 'below' 'middle' 'top'; do
94 testequal
"Package: apt-both-$variant
97 Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
98 " aptcache show apt
-both-$variant
101 testequal
"Package: apt-trans
104 Description-md5: cccccccccccccccccccccccccccccccc
105 " aptcache show apt
-trans
107 testequal
"Package: apt-md5
109 Description-md5: dddddddddddddddddddddddddddddddd
110 " aptcache show apt
-md5
112 testequal
"Package: apt-none
114 " aptcache show apt
-none
116 testequal
"Package: apt-intermixed
119 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
121 " aptcache show apt
-intermixed
123 testequal
"Package: apt-intermixed2
126 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
128 X-Foo-Flag: Something with a Description
130 " aptcache show apt
-intermixed2
132 testequal
"Package: apt-intermixed3
135 Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
137 X-Foo-Flag: Something with a Description
139 " aptcache show apt
-intermixed3