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 ABBA01381F3 for ; Sun, 14 Jul 2013 07:57:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45136E09B9; Sun, 14 Jul 2013 07:57:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2CE2E09B9 for ; Sun, 14 Jul 2013 07:57:46 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D187333BEBF for ; Sun, 14 Jul 2013 07:57:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7789AE468F for ; Sun, 14 Jul 2013 07:57:44 +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: <1373788634.2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0.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: 2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0 X-VCS-Branch: master Date: Sun, 14 Jul 2013 07:57:44 +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: f9706b59-89e8-4acc-811f-95eeaabdca2f X-Archives-Hash: f222019d072b87a7aa9fb362337f7a9e commit: 2e43139c0d8b1b11c8c5ee09b21e1e5aacb346b0 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Sun Jul 14 07:57:14 2013 +0000 Commit: Arfrever Frehtes Taifersar Arahesis gmail com> CommitDate: Sun Jul 14 07:57:14 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=2e43139c portage.repository.config.RepoConfigLoader.config_string(): Rename a variable. --- pym/portage/repository/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 65c43d6..8ded078 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)))