Просмотр исходного кода

* debian/apt.cron.daily:
- source /etc/default/locale (if available) so that the
apt-get update cron job fetches the right translated package
descriptions

Michael Vogt лет назад: 16
Родитель
Сommit
966a4c5320
2 измененных файлов с 11 добавлено и 0 удалено
  1. 7 0
      debian/apt.cron.daily
  2. 4 0
      debian/changelog

+ 7 - 0
debian/apt.cron.daily

@@ -430,6 +430,13 @@ do_cache_backup $BackupArchiveInterval
 # mirrors at the same time
 # mirrors at the same time
 random_sleep
 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
 # update package lists
 UPDATED=0
 UPDATED=0
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp

+ 4 - 0
debian/changelog

@@ -9,6 +9,10 @@ apt (0.8.2) unstable; urgency=low
       not use the root directory to identify the medium (as all 
       not use the root directory to identify the medium (as all 
       changes there change the ident id). Use the .disk directory 
       changes there change the ident id). Use the .disk directory 
       instead 
       instead 
+  * debian/apt.cron.daily:
+    - source /etc/default/locale (if available) so that the 
+      apt-get update cron job fetches the right translated package
+      descriptions
 
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 03 Sep 2010 20:21:43 +0200
  -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 03 Sep 2010 20:21:43 +0200