chromium/update: Fix fetching previous version.

After refactoring the updater we no longer did properly propagate the
exit code from the nix-prefetch-url call to the main script. So if the
newest version could not be fetched it didn't even bother to try the
previous release and we would end up with an empty hash.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-06-18 04:42:29 +02:00
parent 4cbedd7322
commit 47214207b9
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,9 @@ in rec {
prefetch_sha()
{
echo "$(prefetch_main_sha "$@").$(prefetch_deb_sha "$@")";
main_sha="$(prefetch_main_sha "$@")" || return 1;
deb_sha="$(prefetch_deb_sha "$@")" || return 1;
echo "$main_sha.$deb_sha";
return 0;
}