34a196b8e7
The wrong APT config name is used to disable download of translations. It's Acquire::Languages, not APT::Acquire::Languages. Change-Id: Ie0c12d444bab19b4486845944ef51031e9133470 Closes-bug: #1436523
17 lines
424 B
Bash
Executable file
17 lines
424 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
# Configure APT not to fetch translations files
|
|
sudo dd of=$TARGET_ROOT/etc/apt/apt.conf.d/95no-translations <<EOF
|
|
Acquire::Languages "none";
|
|
EOF
|
|
|
|
# And now make sure that we don't fall foul of Debian bug 641967
|
|
find $TARGET_ROOT/var/lib/apt/lists/ -type f -name '*_i18n_Translation-*' -exec sudo rm -f {} +
|