www-apps/misskey: Run yarn cleanall in pkg_preinst()
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
b8266c91ad
commit
752ac1a2d1
|
@ -96,10 +96,12 @@ src_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_preinst() {
|
pkg_preinst() {
|
||||||
|
pushd "${EROOT}"/opt/misskey/misskey || die
|
||||||
|
ebegin "Cleaning ${EROOT}/opt/misskey/misskey"
|
||||||
|
yarn cleanall || die
|
||||||
|
eend
|
||||||
ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}"
|
ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}"
|
||||||
rm -rf "${EROOT}"/opt/misskey/misskey/built || die
|
rm -rf {built,node_modules,packages} || die
|
||||||
rm -rf "${EROOT}"/opt/misskey/misskey/node_modules || die
|
|
||||||
rm -rf "${EROOT}"/opt/misskey/misskey/packages || die
|
|
||||||
eend
|
eend
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user