Fixing metadata creation (activate_external_repos)