This commit is contained in:
rhelmer%mozilla.com 2006-08-01 20:38:47 +00:00
Родитель b6c1a7fb42
Коммит ebd955d171
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -15,7 +15,7 @@ download_mars () {
grep_rv=$?
if [ 0 -ne $grep_rv ]; then
echo "FAIL: no $patch_type update found"
echo "FAIL: no $patch_type update found" > /dev/stderr
return 1
fi
@ -31,16 +31,16 @@ download_mars () {
actual_hash=`openssl dgst -$hashFunction update/$patch_type.mar | sed -e 's/^.*= //'`
if [ $actual_size != $size ]; then
echo "FAIL: $patch_type wrong size"
echo "FAIL: update.xml size: $size"
echo "FAIL: actual size: $actual_size"
echo "FAIL: $patch_type wrong size" > /dev/stderr
echo "FAIL: update.xml size: $size" > /dev/stderr
echo "FAIL: actual size: $actual_size" > /dev/stderr
return 1
fi
if [ $actual_hash != $hashValue ]; then
echo "FAIL: $patch_type wrong hash"
echo "FAIL: update.xml hash: $hashValue"
echo "FAIL: actual hash: $actual_hash"
echo "FAIL: $patch_type wrong hash" > /dev/stderr
echo "FAIL: update.xml hash: $hashValue" > /dev/stderr
echo "FAIL: actual hash: $actual_hash" > /dev/stderr
return 1
fi

Просмотреть файл

@ -22,12 +22,12 @@ check_update () {
unpack_build $platform source "$source_package"
if [ "$?" != "0" ]; then
echo "FAILED: cannot unpack_build $platform source $source_package"
echo "FAILED: cannot unpack_build $platform source $source_package" > /dev/stderr
return 1
fi
unpack_build $platform target "$target_package"
if [ "$?" != "0" ]; then
echo "FAILED: cannot unpack_build $platform target $target_package"
echo "FAILED: cannot unpack_build $platform target $target_package" > /dev/stderr
return 1
fi
@ -48,7 +48,7 @@ check_update () {
$HOME/bin/updater ../../update 0
cd ../..
else
echo "FAIL: no dir in source/$platform_dirname"
echo "FAIL: no dir in source/$platform_dirname" > /dev/stderr
return 1
fi
@ -110,7 +110,7 @@ do
wget -nv $PARAMS "$build_url"
popd > /dev/null
if [ $? != 0 ]; then
echo "FAIL: Could not download source $source_file from $build_url"
echo "FAIL: Could not download source $source_file from $build_url" > /dev/stderr
echo "skipping.."
continue
fi
@ -126,13 +126,13 @@ do
wget -nv $PARAMS "$build_url"
popd > /dev/null
if [ $? != 0 ]; then
echo "FAIL: Could not download target $target_file from $build_url"
echo "FAIL: Could not download target $target_file from $build_url" > /dev/stderr
echo "skipping.."
continue
fi
check_update "$source_build_platform" "downloads/$source_file" "downloads/$target_file"
if [ "$?" != "0" ]; then
echo "FAIL: check_update returned non-zero exit code: $?"
echo "FAIL: check_update returned non-zero exit code: $?" > /dev/stderr
continue
fi
done