2013-02-13 22:16:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-02-13 22:16:00 +00:00
|
|
|
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
|
|
|
|
# Configure APT not to fetch translations files
|
|
|
|
sudo dd of=$TARGET_ROOT/etc/apt/apt.conf.d/95no-translations <<EOF
|
2015-03-25 19:23:45 +00:00
|
|
|
Acquire::Languages "none";
|
2013-02-13 22:16:00 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
# And now make sure that we don't fall foul of Debian bug 641967
|
2016-02-10 20:50:43 +00:00
|
|
|
find $TARGET_ROOT/var/lib/apt/lists/ -path $TARGET_ROOT/var/lib/apt/lists/partial -prune -o -type f -name '*_i18n_Translation-*' -print -exec sudo rm -f {} +
|