cookutils rev 882
cook: check installed package list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 21 21:16:02 2017 +0100 (2017-02-21) |
parents | 897914bd4c94 |
children | 30ca1ab8368a |
files | cook |
line diff
1.1 --- a/cook Tue Feb 21 21:54:37 2017 +0200 1.2 +++ b/cook Tue Feb 21 21:16:02 2017 +0100 1.3 @@ -539,6 +539,12 @@ 1.4 # The main cook function. 1.5 1.6 cookit() { 1.7 + if [ -n "$SETUP_MD5" ] && [ "$SETUP_MD5" != "$(ls $root$INSTALLED | \ 1.8 + md5sum | cut -c1-32)" ]; then 1.9 + _ 'Broken setup. Abort.' 1.10 + exit 1 1.11 + fi 1.12 + 1.13 title 'Cook: %s' "$PACKAGE $VERSION" 1.14 set_paths 1.15