Skip to content

Commit

Permalink
git-r3.eclass: Fix var names for packages starting with digits, #596912
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgorny committed Oct 22, 2016
1 parent 8b6b3eb commit 3d3b76c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eclass/git-r3.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 3d3b76c

Please sign in to comment.