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 4170C1384B4 for ; Wed, 9 Dec 2015 19:32:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6637121C0BB; Wed, 9 Dec 2015 19:32:35 +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 08CEB21C0BA for ; Wed, 9 Dec 2015 19:32:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 274DB34070F for ; Wed, 9 Dec 2015 19:32:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 41F30F28 for ; Wed, 9 Dec 2015 19:32:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1449689373.b56282f14d445ef7a9bed48288d81ab22064890e.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:python-cleanup-r2 commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b56282f14d445ef7a9bed48288d81ab22064890e X-VCS-Branch: python-cleanup-r2 Date: Wed, 9 Dec 2015 19:32:27 +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: 61824e58-2bc5-4626-8dbc-efccff55d1f0 X-Archives-Hash: d843e609317469c01b46843ae532185e commit: b56282f14d445ef7a9bed48288d81ab22064890e Author: Michał Górny gentoo org> AuthorDate: Sun Dec 6 15:53:34 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Dec 9 19:29:33 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b56282f1 python-r1.eclass: Mark eclass-generated variables read-only eclass/python-r1.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 8c58e31..4b9c6f3 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -216,8 +216,8 @@ _python_set_globals() { optflags+=,${flags_st[@]/%/(-)} IUSE=${flags[*]} - PYTHON_REQUIRED_USE="|| ( ${flags[*]} )" - PYTHON_USEDEP=${optflags// /,} + declare -g -r PYTHON_REQUIRED_USE="|| ( ${flags[*]} )" + declare -g -r PYTHON_USEDEP=${optflags// /,} # 1) well, python-exec would suffice as an RDEP # but no point in making this overcomplex, BDEP doesn't hurt anyone @@ -232,6 +232,7 @@ _python_set_globals() { else PYTHON_DEPS+="dev-lang/python-exec:2[${PYTHON_USEDEP}]" fi + readonly PYTHON_DEPS } _python_set_globals unset -f _python_set_globals