From 752ac1a2d19fb8bd83858701a03251e39dd2f46a Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 May 2022 17:21:14 +0200 Subject: [PATCH] www-apps/misskey: Run yarn cleanall in pkg_preinst() Signed-off-by: tastytea --- www-apps/misskey/misskey-12.110.1.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/www-apps/misskey/misskey-12.110.1.ebuild b/www-apps/misskey/misskey-12.110.1.ebuild index 95683e3..ef200b0 100644 --- a/www-apps/misskey/misskey-12.110.1.ebuild +++ b/www-apps/misskey/misskey-12.110.1.ebuild @@ -96,10 +96,12 @@ src_install() { } 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}" - rm -rf "${EROOT}"/opt/misskey/misskey/built || die - rm -rf "${EROOT}"/opt/misskey/misskey/node_modules || die - rm -rf "${EROOT}"/opt/misskey/misskey/packages || die + rm -rf {built,node_modules,packages} || die eend }