summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-10-01 15:25:24 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-10-01 15:25:24 +0200
commit7e1d0a91891ae79facf30ca058557b6e45650f31 (patch)
tree349bc2fb98e31bdc15536c3a7e121bb31c6cece6 /debian/apt.cron.daily
parent8157cdd7b3abef63e8dff898bc763fc420b1089e (diff)
* debian/apt.cron.daily:
- source /etc/default/locale (if available) so that the apt-get update cron job fetches the right translated package descriptions
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 bee0a8f01..a699f0583 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -430,6 +430,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