summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-10-01 14:36:31 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-10-01 14:36:31 +0200
commit966a4c5320a8d7a76749c2ddbfc29708d71bda3c (patch)
treea0a7494a7137b76ef49949a166eacdbca90e4bdc /debian/apt.cron.daily
parent0c6b381f7b61bffc36e462005945027adfc43295 (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 8c0e4c416..40be6e55d 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
+fi
+
# update package lists
UPDATED=0
UPDATE_STAMP=/var/lib/apt/periodic/update-stamp