projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "differences" in readme
[akkoma]
/
lib
/
pleroma
/
release_tasks.ex
diff --git
a/lib/pleroma/release_tasks.ex
b/lib/pleroma/release_tasks.ex
index 02dd6c325db8fc13e1bfae53522c4694534220e6..e43eef07095f24730153145715678597c9da540b 100644
(file)
--- a/
lib/pleroma/release_tasks.ex
+++ b/
lib/pleroma/release_tasks.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ReleaseTasks do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ReleaseTasks do
@@
-25,7
+25,7
@@
defmodule Pleroma.ReleaseTasks do
module = Module.split(module)
match?(["Mix", "Tasks", "Pleroma" | _], module) and
module = Module.split(module)
match?(["Mix", "Tasks", "Pleroma" | _], module) and
- String.downcase(List.last(module)) == task
+ task_match?(module, task)
end)
if module do
end)
if module do
@@
-35,6
+35,13
@@
defmodule Pleroma.ReleaseTasks do
end
end
end
end
+ defp task_match?(["Mix", "Tasks", "Pleroma" | module_path], task) do
+ module_path
+ |> Enum.join(".")
+ |> String.downcase()
+ |> String.equivalent?(String.downcase(task))
+ end
+
def migrate(args) do
Mix.Tasks.Pleroma.Ecto.Migrate.run(args)
end
def migrate(args) do
Mix.Tasks.Pleroma.Ecto.Migrate.run(args)
end