+ # Check for file existence before diffing, the file is not provided in
+ # package archive, but it could have been generated by package installation
+ # scripts
+ if [ ! -f temp/$PACKAGE/$file ];
+ then
+ echo "Warning: '$file' can't be found in package!"
+ fi
+
+
+ # TODO: diff only once and check filesize
+ TMPDIFF_FILE=`mktemp /tmp/etcdiff.XXXXXXXXXX`
+ diff -u temp/$PACKAGE/$file $file > $TMPDIFF_FILE
+ if [ `stat -c '%s' $TMPDIFF_FILE` -eq 0 ];