summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-10-22 23:03:08 +0200
committerMichał Górny <mgorny@gentoo.org>2016-10-22 23:05:08 +0200
commit3d3b76c457908962929f3c636cee8c5b6579b578 (patch)
tree5b24557d67089c42fbc43b9a4a41cee3be7b7a73
parentdev-lang/perl: Add cross-compile support, bug 134650 (diff)
downloadgentoo-3d3b76c457908962929f3c636cee8c5b6579b578.tar.gz
gentoo-3d3b76c457908962929f3c636cee8c5b6579b578.tar.bz2
gentoo-3d3b76c457908962929f3c636cee8c5b6579b578.zip
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.
-rw-r--r--eclass/git-r3.eclass1
1 files changed, 1 insertions, 0 deletions
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}}