]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-601016-description-translation
4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'i386' 'amd64'
9 # we need a valid locale here, otherwise the language configuration
10 # will be overridden by LC_ALL=C
11 LOCALE
="$(echo "$LANG" | cut -d'_' -f 1)"
12 MD5Sum
='Description-md5: d41ee493aa9fcc6cbc9ce4eb7069959c'
14 PACKAGESTANZA
='Package: apt
18 Maintainer: APT Development Team <deity@lists.debian.org>
21 Filename: pool/main/a/apt/apt_0.8.7_i386.deb
23 MD5sum: 74769bfbcef9ebc4fa74f7a5271b9c08'
25 PACKAGESTANZA2
='Package: apt
29 Maintainer: APT Development Team <deity@lists.debian.org>
32 Filename: pool/main/a/apt/apt_0.8.7_amd64.deb
34 MD5sum: 4a869bfbdef9ebc9fa74f7a5271e8d1a'
37 Description: Advanced front-end for dpkg
41 Description: Advanced front-end for dpkg
42 $MD5Sum" > aptarchive
/Packages
45 Description-${LOCALE}: Mächtige Oberfläche für dpkg
46 Das Paket bietet dem Nutzer technisch führende Methoden für den Zugriff
47 auf den dpkg-Paketmanager. Es beinhaltet das apt-get-Werkzeug und die
48 APT-Dselect-Methode. Beides sind einfache und sicherere Wege,
49 um Pakete zu installieren und Upgrades durchzuführen.
50 $MD5Sum" | bzip2 > aptarchive
/${LOCALE}.bz2
52 # the $LOCALE translation file will not be included as it is a flat archive it came from and therefore
53 # its name can not be guessed correctly… (in non-flat archives the files are called Translation-*)
54 echo 'APT::Cache::Generate "false";' > rootdir
/etc
/apt
/apt.conf.d
/00nogenerate
56 NOLONGSTANZA
="$PACKAGESTANZA
57 Description: Advanced front-end for dpkg
61 ENGLISHSTANZA
="$PACKAGESTANZA
62 Description: Advanced front-end for dpkg
66 LOCALESTANZA
="$PACKAGESTANZA
67 Description-${LOCALE}: Mächtige Oberfläche für dpkg
68 Das Paket bietet dem Nutzer technisch führende Methoden für den Zugriff
69 auf den dpkg-Paketmanager. Es beinhaltet das apt-get-Werkzeug und die
70 APT-Dselect-Methode. Beides sind einfache und sicherere Wege,
71 um Pakete zu installieren und Upgrades durchzuführen.
74 LOCALESTANZA2
="$PACKAGESTANZA2
75 Description-${LOCALE}: Mächtige Oberfläche für dpkg
76 Das Paket bietet dem Nutzer technisch führende Methoden für den Zugriff
77 auf den dpkg-Paketmanager. Es beinhaltet das apt-get-Werkzeug und die
78 APT-Dselect-Methode. Beides sind einfache und sicherere Wege,
79 um Pakete zu installieren und Upgrades durchzuführen.
84 echo "Acquire::Languages { \"${LOCALE}\"; \"en\"; };" > rootdir
/etc
/apt
/apt.conf.d
/00languages
86 rm -rf rootdir
/var
/lib
/apt
/lists
88 testequal
"$LOCALESTANZA" aptcache show apt
-o Test
=File
-${LOCALE}
89 testequal
"$LOCALESTANZA" aptcache show apt
:i386
-o Test
=File
-${LOCALE}
90 testequal
"$LOCALESTANZA2" aptcache show apt
:amd64
-o Test
=File
-${LOCALE}
91 testequal
"$NOLONGSTANZA" aptcache show apt
-o Acquire
::Languages
="ww" -o Test
=File
-${LOCALE}
92 testequal
"$LOCALESTANZA" aptcache show apt
-o Acquire
::Languages
::="ww" -o Test
=File
-${LOCALE}
93 LC_ALL
=C testequal
"$ENGLISHSTANZA" aptcache show apt
-o Test
=File
-${LOCALE}
95 echo "Acquire::Languages { \"ww\"; \"${LOCALE}\"; \"en\"; };" > rootdir
/etc
/apt
/apt.conf.d
/00languages
96 testequal
"$LOCALESTANZA" aptcache show apt
-o Test
=File
-ww-${LOCALE}
97 echo "Acquire::Languages { \"ww\"; \"en\"; };" > rootdir
/etc
/apt
/apt.conf.d
/00languages
98 testequal
"$ENGLISHSTANZA" aptcache show apt
-o Test
=File
-ww
104 Description: Advanced front-end for dpkg
108 Description: Advanced front-end for dpkg
109 $MD5Sum" > aptarchive
/Packages
112 Description-en: Advanced front-end for dpkg
113 This is Debian's next generation front-end for the dpkg package manager.
114 It provides the apt-get utility and APT dselect method that provides a
115 simpler, safer way to install and upgrade packages.
116 $MD5Sum" | bzip2 > aptarchive
/en.bz2
118 ENGLISHSTANZA
="$PACKAGESTANZA
119 Description-en: Advanced front-end for dpkg
120 This is Debian's next generation front-end for the dpkg package manager.
121 It provides the apt-get utility and APT dselect method that provides a
122 simpler, safer way to install and upgrade packages.
125 ENGLISHSTANZA2
="$PACKAGESTANZA2
126 Description-en: Advanced front-end for dpkg
127 This is Debian's next generation front-end for the dpkg package manager.
128 It provides the apt-get utility and APT dselect method that provides a
129 simpler, safer way to install and upgrade packages.