public void DisableRepositorySynchronization(string repoName)
{
lock (this.repo_lock)
{
foreach (RepoBase aRepo in this.repositories)
{
if (aRepo.Name.Equals(repoName))
{
if (aRepo.Enabled)
{
aRepo.Disable();
Logger.Debug("Requested to suspend sync of repo " + aRepo.Name);
}
}
}
}
}