don't install any patterns
use ruby's String.include? regexps are overkill
don't add the repository key again if it's already there