X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Ffrontend.ex;h=dc9d55646c9a949e206a57a78ccfda39f6ca0918;hb=18bf82d7479b0bb767a657e1b7447529f9c2884f;hp=cc0b47077f7a82f1130543af579c0669ff58a9c9;hpb=5b11543c96427ced093c28c38de0924a148424b7;p=akkoma diff --git a/lib/pleroma/frontend.ex b/lib/pleroma/frontend.ex index cc0b47077..dc9d55646 100644 --- a/lib/pleroma/frontend.ex +++ b/lib/pleroma/frontend.ex @@ -33,6 +33,7 @@ defmodule Pleroma.Frontend do label = "#{name} (#{ref})" tmp_dir = Path.join(dir(), "tmp") IO.puts("Downloading #{label}...") + with {_, :ok} <- {:download_or_unzip, download_or_unzip(frontend_info, tmp_dir, opts[:file])}, IO.puts("Installing #{label} to #{dest}"), @@ -92,7 +93,7 @@ defmodule Pleroma.Frontend do url = String.replace(frontend_info["build_url"], "${ref}", frontend_info["ref"]) with {:ok, %{status: 200, body: zip_body}} <- - Pleroma.HTTP.get(url, [], pool: :media, recv_timeout: 120_000) do + Pleroma.HTTP.get(url, [], receive_timeout: 120_000) do unzip(zip_body, dest) else {:error, e} -> {:error, e}