# HG changeset patch # User Pascal Bellard # Date 1487708162 -3600 # Node ID ab9148a850311b5796b5022eacc1791671cbc098 # Parent 897914bd4c945d6606194bf3bf16e02bb6d24086 cook: check installed package list diff -r 897914bd4c94 -r ab9148a85031 cook --- a/cook Tue Feb 21 21:54:37 2017 +0200 +++ b/cook Tue Feb 21 21:16:02 2017 +0100 @@ -539,6 +539,12 @@ # The main cook function. cookit() { + if [ -n "$SETUP_MD5" ] && [ "$SETUP_MD5" != "$(ls $root$INSTALLED | \ + md5sum | cut -c1-32)" ]; then + _ 'Broken setup. Abort.' + exit 1 + fi + title 'Cook: %s' "$PACKAGE $VERSION" set_paths