From: Michał Górny Date: Sat, 22 Oct 2016 21:03:08 +0000 (+0200) Subject: git-r3.eclass: Fix var names for packages starting with digits, #596912 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=3d3b76c457908962929f3c636cee8c5b6579b578;p=gentoo.git 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. --- diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 817638dc0de4..f76f1a7ea596 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}}