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