Only update the cache for the created repository

Updating the entire apt index each time a repository is added takes extra time and is unnecessary.