Fix condition where repo_priority is run against missing repo
Merge pull request #135 from dobbymoodge/check-sources-bugs

Fix condition where repo_priority is run against missing repo