transaction: Install an extension's required runtime

Closes: #2954
Approved by: alexlarsson

(cherry picked from commit c87c480a18)

Closes: #2992
Approved by: alexlarsson

(cherry picked from commit 1ca31146d3)

Closes: #3115
Approved by: alexlarsson

(cherry picked from commit f7463733da)

Closes: #3117
Approved by: alexlarsson
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f