X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpleroma%2Ffrontend.ex;h=c9e51bdc189693d2ea800041df693a366eaa82af;hb=0769f06bd172a51b3875f4d56db31ceff4a79d06;hp=b3d4c3325073f21b6ec33c9115c17d842844cc70;hpb=e46c95b826c3fb98efa15cf6fd5d6cf2fb9797af;p=akkoma
diff --git a/lib/pleroma/frontend.ex b/lib/pleroma/frontend.ex
index b3d4c3325..c9e51bdc1 100644
--- a/lib/pleroma/frontend.ex
+++ b/lib/pleroma/frontend.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Frontend do
@@ -32,19 +32,22 @@ 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])},
- Logger.info("Installing #{label} to #{dest}"),
+ IO.puts("Installing #{label} to #{dest}"),
:ok <- install_frontend(frontend_info, tmp_dir, dest) do
File.rm_rf!(tmp_dir)
- Logger.info("Frontend #{label} installed to #{dest}")
+ IO.puts("Frontend #{label} installed to #{dest}")
else
{:download_or_unzip, _} ->
- Logger.info("Could not download or unzip the frontend")
+ IO.puts("Could not download or unzip the frontend")
+ {:error, "Could not download or unzip the frontend"}
_e ->
- Logger.info("Could not install the frontend")
+ IO.puts("Could not install the frontend")
+ {:error, "Could not install the frontend"}
end
end