*** fetch_runtime.sh.orig 2009-05-09 06:07:07.000000000 +0200 --- fetch_runtime.sh 2009-05-09 11:32:45.741963417 +0200 *************** *** 43,49 **** # if we have the file and the MD5sum fails, we technically don't have the file if [ -f ${_file} ]; then # MD5 fails ? ... we don't have the file ! if [ $(echo "${_md5} ${_file}" | md5sum --status -c -) ]; then rm ${_file} else _havefile=1 --- 43,50 ---- # if we have the file and the MD5sum fails, we technically don't have the file if [ -f ${_file} ]; then # MD5 fails ? ... we don't have the file ! echo "${_md5} ${_file}" | md5sum --status -c - ! if [[ $? != 0 ]]; then rm ${_file} else _havefile=1 *************** *** 53,62 **** _cachefile=${srcdir}/${_versiondir}/runtime/${_file} if [ ${_havefile} -ne 1 -a -f ${_cachefile} ]; then # MD5 fails ? ... we lookup if we downloaded another version earlier ! if [ $(echo "${_md5} ${_cachefile}" | md5sum --status -c -) ]; then _cachefile=${_srccache}/${_file} if [ -f ${_cachefile} ]; then ! if [ $(echo "${_md5} ${_cachefile}" | md5sum --status -c -) ]; then rm ${_cachefile} else cp ${_cachefile} ${_dir} --- 54,65 ---- _cachefile=${srcdir}/${_versiondir}/runtime/${_file} if [ ${_havefile} -ne 1 -a -f ${_cachefile} ]; then # MD5 fails ? ... we lookup if we downloaded another version earlier ! echo "${_md5} ${_cachefile}" | md5sum --status -c - ! if [[ $? != 0 ]]; then _cachefile=${_srccache}/${_file} if [ -f ${_cachefile} ]; then ! echo "${_md5} ${_cachefile}" | md5sum --status -c - ! if [[ $? != 0 ]]; then rm ${_cachefile} else cp ${_cachefile} ${_dir} *************** *** 72,78 **** _cachefile=${_srccache}/${_file} if [ ${_havefile} -ne 1 -a -f ${_cachefile} ]; then # MD5 fails ? ... we don't have the file ! if [ $(echo "${_md5} ${_cachefile}" | md5sum --status -c -) ]; then rm ${_cachefile} else cp ${_cachefile} ${_dir} --- 75,82 ---- _cachefile=${_srccache}/${_file} if [ ${_havefile} -ne 1 -a -f ${_cachefile} ]; then # MD5 fails ? ... we don't have the file ! echo "${_md5} ${_cachefile}" | md5sum --status -c - ! if [[ $? != 0 ]]; then rm ${_cachefile} else cp ${_cachefile} ${_dir} *************** *** 92,98 **** fi # check the MD5 sum finally ! if [ $(echo "${_md5} ${_file}" | md5sum --status -c -) ]; then echo "!!!! md5sum check for ${_file} failed !!!!" errors=$((${_errors} + 1)) fi --- 96,103 ---- fi # check the MD5 sum finally ! echo "${_md5} ${_file}" | md5sum --status -c - ! if [[ $? != 0 ]]; then echo "!!!! md5sum check for ${_file} failed !!!!" errors=$((${_errors} + 1)) fi