   end
 
   # Callbacks
-  def check_install_spec({local_or_url, path_or_url} = _install_spec, _opts) when
-      local_or_url in [:local, :url] do
+  def check_install_spec({local_or_url, path_or_url} = _install_spec, _opts)
+      when local_or_url in [:local, :url] do
     if Path.extname(path_or_url) == ".ez" do
       :ok
     else

  def find_previous_versions(src) do
    app =
      src
      |> Mix.Local.archive_name
      |> String.split("-")
      |> List.first

    if app do
      archives(app) ++ archives(app <> "-*")

    with {:ok, [_comment, zip_first_file | _]} <- :zip.list_dir(contents),
         {:zip_file, zip_first_path, _, _, _, _} = zip_first_file,
         [zip_root_dir | _] = Path.split(zip_first_path) do
      Path.join(Path.dirname(ez_path), zip_root_dir)
    else
      _ ->
        Mix.raise("Installation failed: invalid archive file")
    end
  end

