Check for file size on update CD/DVD generation
This commit is contained in:
parent
cea7b3cd42
commit
4dcc8bd94c
|
@ -310,6 +310,11 @@ do
|
|||
BACKOUT_FILE=""
|
||||
fi
|
||||
|
||||
size=$(stat -c %s $MIRROR/$file)
|
||||
size_kib=$(($size / 1024))
|
||||
if [ $size_kib -gt $CDSIZE ] ; then
|
||||
echo "Ignoring file $file - it won't fit!"
|
||||
else
|
||||
add_file $file
|
||||
|
||||
SIZE_USED=`du -sk $UPD/CD$CDNUM | awk '{print $1}'`
|
||||
|
@ -326,6 +331,7 @@ do
|
|||
CDNUM=$(($CDNUM + 1))
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue