only call refresh_db and git-add-repository if repo was previously undefined
also strip trailing '/' in get_repo, see comment in code
should have been try/except, not if statement
indentation issue
properly return dict in mod_repo, except cleanup
Merge pull request #7077 from erchn/develop

Don't call apt-get update when there were no changes in repo structure