I don't know if it makes a difference but Repository#index_content is calling index_package_groups which isn't being called here. 

#index_puppet_modules is already being called in #index_content.