4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'i386'
9 cat >aptarchive
/ftparchive.conf
<<EOF
10 Dir { ArchiveDir "$(pwd)/aptarchive"; CacheDir "$(pwd)/aptarchive"; };
11 Default { Translation::Compress ". gzip bzip2 xz"; FileMode 0644; };
15 LongDescription "false";
18 mkdir -p aptarchive
/dists
/sid
/main
/binary
-i386
19 mkdir -p aptarchive
/dists
/sid
/main
/i18n
20 testsuccess aptftparchive generate aptarchive
/ftparchive.conf
21 i18n
=aptarchive
/dists
/sid
/main
/i18n
22 for comp
in '' .gz .bz2 .xz
; do
23 msgtest
'Test apt-ftparchive file mode is 644 for' "Translation-en$comp"
24 FILEMODE
="$(stat --format %a "$i18n/Translation-en$comp")"
25 if [ "$FILEMODE" != '644' ]; then
26 msgfail
"Mode was '$FILEMODE'!"