From 47214207b92fa5e5592e33c4d2f0326e91c08587 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 18 Jun 2014 04:42:29 +0200 Subject: 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 --- pkgs/applications/networking/browsers/chromium/source/update.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/networking/browsers') diff --git a/pkgs/applications/networking/browsers/chromium/source/update.nix b/pkgs/applications/networking/browsers/chromium/source/update.nix index de45d4099371..cfa5f1e009b8 100644 --- a/pkgs/applications/networking/browsers/chromium/source/update.nix +++ b/pkgs/applications/networking/browsers/chromium/source/update.nix @@ -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; } -- cgit 1.4.1