From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 415C1138917 for ; Sat, 22 Oct 2016 21:05:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76D22E0854; Sat, 22 Oct 2016 21:05:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5AC57E0854 for ; Sat, 22 Oct 2016 21:05:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1BB30341674 for ; Sun, 23 Oct 2016 00:23:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5809244E for ; Sat, 22 Oct 2016 21:05:10 +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: <1477170308.3d3b76c457908962929f3c636cee8c5b6579b578.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/git-r3.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3d3b76c457908962929f3c636cee8c5b6579b578 X-VCS-Branch: master Date: Sat, 22 Oct 2016 21:05:10 +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: 7abdb56a-cf23-4c88-8ac2-6dd69dea03aa X-Archives-Hash: f7f992f8f77f5780ccef98e1ac037d74 commit: 3d3b76c457908962929f3c636cee8c5b6579b578 Author: Michał Górny gentoo org> AuthorDate: Sat Oct 22 21:03:08 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Oct 22 21:05:08 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d3b76c4 git-r3.eclass: Fix var names for packages starting with digits, #596912 Fix live variable names for packages whose names start with digits. Since variable names can not start with digits in bash, just prepend an underscore to them. eclass/git-r3.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 817638d..f76f1a7 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -253,6 +253,7 @@ _git-r3_env_setup() { local esc_pn livevar esc_pn=${PN//[-+]/_} + [[ ${esc_pn} == [0-9]* ]] && esc_pn=_${esc_pn} livevar=${esc_pn}_LIVE_REPO EGIT_REPO_URI=${!livevar-${EGIT_REPO_URI}}