diff options
author | Daniel Drake <dsd@laptop.org> | 2011-08-28 18:04:34 (GMT) |
---|---|---|
committer | Anish Mangal <anish@sugarlabs.org> | 2011-10-14 19:33:26 (GMT) |
commit | c877fe6dbd3f8e0423dc5fb6af56deee3105edf9 (patch) | |
tree | 2d12e224a14dd10564204d37a0ec23d78b6a4b6c | |
parent | 4efa3ed24050a135f4f05102d28ad213f7246c2d (diff) |
repos: read fedora_arch only when needed
Avoids errors reading this when it is not used.
-rw-r--r-- | modules/repos/ksmain.50.repos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repos/ksmain.50.repos.py b/modules/repos/ksmain.50.repos.py index ba33d7e..7a794d2 100644 --- a/modules/repos/ksmain.50.repos.py +++ b/modules/repos/ksmain.50.repos.py @@ -33,7 +33,6 @@ excludepkgs = set() addexcludes = ooblib.read_config('repos', 'add_excludes_to') fedora = ooblib.read_config('repos', 'fedora') fver = ooblib.read_config('global', 'fedora_release').strip() -farch = ooblib.read_config('repos', 'fedora_arch').strip() # clean up addexcludes list if addexcludes is not None: @@ -87,6 +86,7 @@ def get_fedora_repo(name, version, arch): return "mirrorlist", FEDORA_URLS[name] % { 'version': version, 'arch': arch } if fedora is not None: + farch = ooblib.read_config('repos', 'fedora_arch').strip() for repo in fedora.split(','): <<<<<<< HEAD repo = repo.strip().replace('-', '_') |