Skip to content

Commit

Permalink
Bring back cleanup deletion code
Browse files Browse the repository at this point in the history
  • Loading branch information
furgo16 committed Feb 13, 2025
1 parent ddeb1b3 commit 42c8030
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ parts:
override-prime: |
set -eux
for snap in "kf5-core24-sdk"; do # List all content-snaps you're using here
cd "/snap/$snap/current" && \
find . -type f,l -not -path "./usr/lib/python3/dist-packages/numpy*" \
-not -name 'libblas.so*' \
-not -name 'liblapack.so*' \
-exec rm -f "$CRAFT_PRIME/{}" "$CRAFT_PRIME/usr/{}" \;
done
for cruft in bug lintian man; do
rm -rf $CRAFT_PRIME/usr/share/$cruft
done
Expand Down

0 comments on commit 42c8030

Please sign in to comment.