diff --git a/snapcraft.yaml b/snapcraft.yaml index 4b37fa7c7..dbfd9a109 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -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: