commit: 3d3b76c457908962929f3c636cee8c5b6579b578
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 22 21:03:08 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> 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}}