From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C23BE138CE3 for ; Sun, 9 Feb 2014 07:27:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 498B5E099F; Sun, 9 Feb 2014 07:27:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D980AE099F for ; Sun, 9 Feb 2014 07:27:29 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB79D33F9D3 for ; Sun, 9 Feb 2014 07:27:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id B1F8E18852 for ; Sun, 9 Feb 2014 07:27:26 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" Message-ID: <1391930621.608d9a76b957ab1b245a331d6b793774708006dd.arfrever@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/repository/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/repository/config.py X-VCS-Directories: pym/portage/repository/ X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis X-VCS-Revision: 608d9a76b957ab1b245a331d6b793774708006dd X-VCS-Branch: master Date: Sun, 9 Feb 2014 07:27:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4fbfd6c8-d571-40b6-831b-1fe841b14d24 X-Archives-Hash: 3e069e6aa4c78021cf73dd159fac777d commit: 608d9a76b957ab1b245a331d6b793774708006dd Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Sun Feb 9 07:23:41 2014 +0000 Commit: Arfrever Frehtes Taifersar Arahesis apache org> CommitDate: Sun Feb 9 07:23:41 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=608d9a76 portage.repository.config.RepoConfigLoader.config_string(): Always include DEFAULT section at the beginning of returned string for better readability. --- pym/portage/repository/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index e0d3173..952912e 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(".", "_")