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 723b895 commit 481288a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,14 @@ parts:
[ -e "${SNAPCRAFT_PRIME}/criu/criu" ] && strip -s ${SNAPCRAFT_PRIME}/criu/criu
# XXX: look for broken symlinks indicating missing/invalid prime
broken_symlinks="$(find "${SNAPCRAFT_PRIME}/" -xtype l)"
if [ -n "${broken_symlinks}" ]; then
echo "Found broken symlinks:"
echo "${broken_symlinks}"
exit 1
fi
exit 0
wrappers:
Expand Down

0 comments on commit 481288a

Please sign in to comment.