aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-02-09 08:23:41 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-02-09 08:23:41 +0100
commit608d9a76b957ab1b245a331d6b793774708006dd (patch)
tree2004c4d9633c87084bb06cefa74d3f9af0f09f85 /pym/portage/repository/config.py
parentRemove "my" prefix from my{dir,link,file}list (diff)
downloadportage-608d9a76b957ab1b245a331d6b793774708006dd.tar.gz
portage-608d9a76b957ab1b245a331d6b793774708006dd.tar.bz2
portage-608d9a76b957ab1b245a331d6b793774708006dd.zip
portage.repository.config.RepoConfigLoader.config_string(): Always include DEFAULT section
at the beginning of returned string for better readability.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index e0d3173bf..952912e48 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -940,7 +940,7 @@ class RepoConfigLoader(object):
repo_config_tuple_attrs = tuple(_masters_attributes.keys())
attrs = str_or_int_attrs + str_tuple_attrs + repo_config_tuple_attrs
config_string = ""
- for repo_name, repo in sorted(self.prepos.items()):
+ for repo_name, repo in sorted(self.prepos.items(), key=lambda x: (x[0] != "DEFAULT", x[0])):
config_string += "\n[%s]\n" % repo_name
for attr in sorted(attrs):
underscorized_attr = attr.replace("-", "_").replace(".", "_")