logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository.
commit: e7503a5dcef793ee9b9bfdd58a70beaad326bfea
parent: 74d0e1f032834ca43afabf203e3cc87f1d635724
Author: Your Name <you@example.com>
Date:   Tue,  2 Jun 2020 14:19:45 +0000

bashrc: Enable go-deblob

Diffstat:

Mbashrc16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/bashrc b/bashrc @@ -5,10 +5,12 @@ if [ "${EBUILD_PHASE}" == "postinst" ] || [ "${EBUILD_PHASE}" == "postrm" ]; the makewhatis -Q -T utf8 ${MANPATH//:/ } fi -#if [ "${EBUILD_PHASE}" == "prepare" ]; then -# if grep -q -- '-bin$' <<<"${PN}"; then -# echo ":: *-bin package, not deblobbing" -# else -# go-deblob -e 'test*' -e '*/test*' -d "${WORKDIR}" -# fi -#fi +if [ "${EBUILD_PHASE}" == "prepare" ]; then + if grep -q -- '-bin$' <<<"${PN}"; then + echo ":: *-bin package, not deblobbing" + elif grep -q -- "${PN}" /etc/portage/go-deblob.reject; then + echo ":: package is in /etc/portage/go-deblob.reject, not deblobbing" + else + go-deblob -e 'test*' -e '*/test*' -d "${WORKDIR}" + fi +fi