When updating the install list for files which have had local changes

merged with upgrade changes, don't try to compute the SHA256 hash of
files which don't exist.

Reported by:	Jaakko Heinonen
MFC after:	1 week
This commit is contained in:
Colin Percival 2008-03-23 13:41:54 +00:00
parent fbb275f59d
commit c58b62eff4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177527

View File

@ -2196,9 +2196,9 @@ EOF
# Store merged files.
while read F; do
V=`${SHA256} -q merge/new/${F}`
if [ -f merge/new/${F} ]; then
V=`${SHA256} -q merge/new/${F}`
gzip -c < merge/new/${F} > files/${V}.gz
echo "${F}|${V}"
fi