mod_admin_shell: Show reverse dependencies in module:info()

Why was this module loaded? Now you can find out!
This commit is contained in:
Kim Alvefur 2023-03-05 14:08:26 +01:00
parent 32445b3082
commit 283322543e

View file

@ -575,6 +575,12 @@ function def_env.module:info(name, hosts)
print(" - mod_" .. dep);
end
end
if mod.module.reverse_dependencies and next(mod.module.reverse_dependencies) ~= nil then
print(" reverse dependencies:");
for dep in pairs(mod.module.reverse_dependencies) do
print(" - mod_" .. dep);
end
end
end
return true;
end