diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-06-18 04:42:29 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-06-19 01:51:35 +0200 |
commit | 47214207b92fa5e5592e33c4d2f0326e91c08587 (patch) | |
tree | 76c9609468e2f77073cae0fc5480a3a910d51e79 | |
parent | 4cbedd7322d986d29805a8d9e643b8e76d5d6f6d (diff) | |
download | nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.tar nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.tar.gz nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.tar.bz2 nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.tar.lz nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.tar.xz nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.tar.zst nixlib-47214207b92fa5e5592e33c4d2f0326e91c08587.zip |
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>
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/source/update.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |