summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMartin Pitt <martin@piware.de>2010-10-13 14:22:29 +0200
committerMartin Pitt <martin@piware.de>2010-10-13 14:22:29 +0200
commiteff581c2d4740bc439522e44538fd6f7f4069e06 (patch)
tree1ae241ddb802d596cf5fda083d6eb38f93ecb34d /debian/apt.cron.daily
parent9c182afa045dc889a5025d166328c6115924d706 (diff)
parentea38b1e608db857d4845b7bf6275b2df1fb8c9e7 (diff)
merge from trunk
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 8ace14a31..c61bfb9bb 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -417,6 +417,13 @@ do_cache_backup $BackupArchiveInterval
# mirrors at the same time
random_sleep
+# include default system language so that "apt-get update" will
+# fetch the right translated package descriptions
+if [ -r /etc/default/locale ]; then
+ . /etc/default/locale
+ export LANG LANGUAGE LC_MESSAGES LC_ALL
+fi
+
# update package lists
UPDATED=0
UPDATE_STAMP=/var/lib/apt/periodic/update-stamp