Skip to content

Commit

Permalink
snapcraft: look for broken symlinks during strip
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Dec 4, 2023
1 parent 6a0dc36 commit 42fd238
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,16 @@ parts:
cp -r "${CRAFT_STAGE}/share/lxd-documentation" "${CRAFT_PRIME}/share/"
fi
# XXX: look for broken symlinks indicating missing/invalid prime
broken_symlinks="$(find "${CRAFT_PRIME}/" -xtype l \
-not -path "${CRAFT_PRIME}/lxc/config/common.conf.d/*" \
-not -path "${CRAFT_PRIME}/usr/share/doc/uuid-runtime/*")"
if [ -n "${broken_symlinks}" ]; then
echo "Found broken symlinks:"
echo "${broken_symlinks}"
exit 1
fi
exit 0
wrappers:
Expand Down

0 comments on commit 42fd238

Please sign in to comment.