From 118a68b871b7b1860ed79c8d840fff04fc75fa38 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 08:17:39 -0600 Subject: [PATCH 08/17] Search for language updates on upgrade disk --- language.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/language.py b/language.py index cc14aeb..7a042b7 100644 --- a/language.py +++ b/language.py @@ -57,7 +57,9 @@ class Language: self.current = "en_US.UTF-8" # English name -> native name mapping - search = ('lang-names', '/usr/lib/anaconda/lang-names') + search = ('lang-names', '/tmp/updates/lang-names', + '/mnt/source/RHupdates/lang-names', + '/usr/lib/anaconda/lang-names') for path in search: if os.access(path, os.R_OK): f = open(path, 'r') @@ -109,6 +111,8 @@ class Language: def getNickByName (self, name): for k in self.localeInfo.keys(): + if k == 'C': + continue row = self.localeInfo[k] if row[0] == name: return k -- 1.7.1