tazpkg rev 29
Improve 'tazpkg check'
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 26 17:12:39 2007 +0000 (2007-12-26) |
parents | 5041921ae937 |
children | 61ac431b0908 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Wed Dec 26 11:22:54 2007 +0100 1.2 +++ b/tazpkg Wed Dec 26 17:12:39 2007 +0000 1.3 @@ -878,7 +878,15 @@ 1.4 check_root 1.5 cd $INSTALLED 1.6 for PACKAGE in `ls`; do 1.7 - MSG="Files lost from $PACKAGE :\n" 1.8 + DEPENDS="" 1.9 + . $PACKAGE/receipt 1.10 + if [ -s $PACKAGE/modifiers ]; then 1.11 + echo "The package $PACKAGE $VERSION has been modified by :" 1.12 + for i in $(cat $PACKAGE/modifiers); do 1.13 + echo " $i" 1.14 + done 1.15 + fi 1.16 + MSG="Files lost from $PACKAGE $VERSION :\n" 1.17 while read file; do 1.18 [ -e "$file" ] && continue 1.19 if [ -L "$file" ]; then 1.20 @@ -887,9 +895,7 @@ 1.21 echo -e "$MSG $file" 1.22 MSG="" 1.23 done < $PACKAGE/files.list 1.24 - DEPENDS="" 1.25 - . $PACKAGE/receipt 1.26 - MSG="Missing dependancies for $PACKAGE : \n" 1.27 + MSG="Missing dependancies for $PACKAGE $VERSION :\n" 1.28 for i in $DEPENDS; do 1.29 [ -d $i ] && continue 1.30 echo -e "$MSG $i"