Bug 393036, re-unpack ab-CD.xpi when doing update verification with 1.5.0.x win32 installers, r=rhelmer

This commit is contained in:
nrthomas@gmail.com 2007-08-22 10:23:59 -07:00
parent aba20b817a
commit a5a4e42120
3 changed files with 6 additions and 3 deletions

View File

@ -3,17 +3,18 @@ check_updates () {
update_platform=$1
source_package=$2
target_package=$3
locale=$4
# cleanup
rm -rf source/*
rm -rf target/*
unpack_build $update_platform source "$source_package"
unpack_build $update_platform source "$source_package" $locale
if [ "$?" != "0" ]; then
echo "FAILED: cannot unpack_build $update_platform source $source_package"
return 1
fi
unpack_build $update_platform target "$target_package"
unpack_build $update_platform target "$target_package" $locale
if [ "$?" != "0" ]; then
echo "FAILED: cannot unpack_build $update_platform target $target_package"
return 1

View File

@ -3,6 +3,7 @@ unpack_build () {
unpack_platform="$1"
dir_name="$2"
pkg_file="$3"
locale=$4
mkdir -p $dir_name
pushd $dir_name > /dev/null
@ -29,6 +30,7 @@ unpack_build () {
do
unzip -o $file > /dev/null
done
unzip -o ${locale}.xpi > /dev/null
fi
;;
linux-i686|linux|Linux_x86-gcc|Linux_x86-gcc3)

View File

@ -128,7 +128,7 @@ do
fi
source_file=`basename "$from_path"`
target_file=`basename "$to_path"`
check_updates "$platform" "downloads/$source_file" "downloads/$target_file"
check_updates "$platform" "downloads/$source_file" "downloads/$target_file" $locale
err=$?
if [ "$err" != "0" ]; then
echo "WARN: check_update returned non-zero exit code for $platform downloads/$source_file vs. downloads/$target_file: $err"