public AddSourceResult AddSource(Type providerType)
{
// internal scripts dont need to be updated, so just quit
// if we dont need to reload everything
if (updateOnly) return AddSourceResult.FAILED;
foreach (DBSourceInfo currSource in allSources)
if (currSource.ProviderType == providerType)
return AddSourceResult.FAILED;
DBSourceInfo newSource = new DBSourceInfo();
newSource.ProviderType = providerType;
newSource.Commit();
updateListsWith(newSource);
normalizePriorities();
return AddSourceResult.SUCCESS;
}