Add ||true to AOT postinst, to prevent install failure on architectures like s390x without AOT.

Former-commit-id: 8882ab86512e304a6ce367a860f46660f003ec15
This commit is contained in:
Jo Shields 2015-01-21 16:23:37 +00:00
parent 838968cd43
commit 372bfe48fb

View File

@ -2,5 +2,5 @@ if [ "$1" = "configure" ]
then
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //'`
mkdir -p /usr/lib/mono/aot-cache/${MONOARCH}/
/usr/bin/mono --aot=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all,shared #FILE# > /dev/null 2>&1
/usr/bin/mono --aot=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all,shared #FILE# > /dev/null 2>&1 || true
fi