summaryrefslogtreecommitdiff
path: root/eclass/golang-vcs.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/golang-vcs.eclass')
-rw-r--r--eclass/golang-vcs.eclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass
index baf3adf51a6..182c4246f63 100644
--- a/eclass/golang-vcs.eclass
+++ b/eclass/golang-vcs.eclass
@@ -109,13 +109,14 @@ _golang-vcs_fetch() {
[[ -n ${EVCS_UMASK} ]] && eumask_pop
fi
- set -- mkdir -p "${WORKDIR}/${P}/src/${EGO_PN%/...}"
+ local go_srcpath="${WORKDIR}/${P}/src/${EGO_PN%/...}"
+ set -- mkdir -p "${go_srcpath}"
echo "$@"
- "$@" || die "Unable to create ${WORKDIR}/${P}/src"
+ "$@" || die "Unable to create ${go_srcpath}"
set -- cp -r "${EGO_STORE_DIR}/src/${EGO_PN%/...}" \
- "${WORKDIR}/${P}/src/${EGO_PN%/...}"
+ "${go_srcpath}/.."
echo "$@"
- "$@" || die "Unable to copy sources to ${WORKDIR}/${P}"
+ "$@" || die "Unable to copy sources to ${go_srcpath}"
return 0
}