golang-vcs-snapshot.eclass: typo fix
authorWilliam Hubbs <williamh@gentoo.org>
Tue, 11 Aug 2015 20:08:23 +0000 (15:08 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Tue, 11 Aug 2015 20:12:44 +0000 (15:12 -0500)
This follows from my previous commit to the golang-vcs.eclass.
${EGO_PN%/*} should be replaced with ${EGO_PN%/...} since we only want
to strip off "/..." from the end of the path.

eclass/golang-vcs-snapshot.eclass

index 1cf5a56e71609ac95b1a8824cf832debf64b5001..8ebb36e27d21c133ae76fc1e3f81a8add59f4713 100644 (file)
@@ -50,7 +50,7 @@ golang-vcs-snapshot_src_unpack() {
        ego_pn_check
        set -- ${A}
        x="$1"
-       mkdir -p "${WORKDIR}/${P}/src/${EGO_PN%/*}" || die
-       tar -C "${WORKDIR}/${P}/src/${EGO_PN%/*}" -x --strip-components 1 \
+       mkdir -p "${WORKDIR}/${P}/src/${EGO_PN%/...}" || die
+       tar -C "${WORKDIR}/${P}/src/${EGO_PN%/...}" -x --strip-components 1 \
                -f "${DISTDIR}/${x}" || die
 }