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 C818B1384B4 for ; Sun, 6 Dec 2015 19:09:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31AB521C1E4; Sun, 6 Dec 2015 19:03:55 +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 C9D5821C1CC for ; Sun, 6 Dec 2015 19:03:53 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 5BF5B340686; Sun, 6 Dec 2015 19:03:52 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 12/13] python-r1.eclass: Mark eclass-generated variables read-only Date: Sun, 6 Dec 2015 20:03:31 +0100 Message-Id: <1449428612-20538-13-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1449428612-20538-1-git-send-email-mgorny@gentoo.org> References: <1449428612-20538-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: da4a4c16-0eb8-4cd5-a38a-de9101da57c9 X-Archives-Hash: 36cb90749cdc16e074057d8da0010d80 --- 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 -- 2.6.3