aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-07-14 09:57:14 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-07-14 09:57:14 +0200
commit2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0 (patch)
tree92b7abb337d8ef4326fbd49b681ab80cd049c1af /pym/portage/repository/config.py
parentportage.settings.repositories.config_string(): Improve format of returned str... (diff)
downloadportage-2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0.tar.gz
portage-2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0.tar.bz2
portage-2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0.zip
portage.repository.config.RepoConfigLoader.config_string(): Rename a variable.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 65c43d664..8ded07825 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -833,9 +833,9 @@ class RepoConfigLoader(object):
def config_string(self):
str_or_int_keys = ("format", "location", "main_repo", "priority", "sync")
- tuple_keys = ("aliases", "eclass_overrides")
+ str_tuple_keys = ("aliases", "eclass_overrides")
repo_config_tuple_keys = ("masters",)
- keys = str_or_int_keys + tuple_keys + repo_config_tuple_keys
+ keys = str_or_int_keys + str_tuple_keys + repo_config_tuple_keys
config_string = ""
for repo_name, repo in sorted(self.prepos.items()):
config_string += "\n[%s]\n" % repo_name
@@ -845,7 +845,7 @@ class RepoConfigLoader(object):
if getattr(repo, key) is not None:
if key in str_or_int_keys:
config_string += "%s = %s\n" % (key.replace("_", "-"), getattr(repo, key))
- elif key in tuple_keys:
+ elif key in str_tuple_keys:
config_string += "%s = %s\n" % (key.replace("_", "-"), " ".join(getattr(repo, key)))
elif key in repo_config_tuple_keys:
config_string += "%s = %s\n" % (key.replace("_", "-"), " ".join(x.name for x in getattr(repo, key)))