www-apps/misskey: Only delete npm-cache with USE=source

This commit is contained in:
tastytea 2022-05-24 21:53:40 +02:00
parent 2618003240
commit 6c2abf3093
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 2 deletions

View File

@ -80,11 +80,10 @@ src_compile() {
}
src_install() {
rm -rf npm-cache || die "Deleting cache failed"
insinto opt/misskey/misskey
insopts -o misskey -g misskey
if use source; then
rm -rf npm-cache || die "Deleting cache failed"
doins -r .
else
doins -r package.json .node-version .config built packages