private bool ValidInstaller(ComponentInstaller installer) { if (!CheckSelfDependency(installer)) { return(false); } return(true); }
public IPatchInstanceBuilder Install(string version, string released, string description) { var patch = new ComponentInstaller { ComponentId = _component.ComponentId, Version = new Version(0, 0) }; patch.Version = ParseVersion(version, patch); patch.ReleaseDate = ParseDate(released, patch); patch.Description = CheckDescription(description, patch); _patches.Add(patch); return(new ItemBuilder(patch, this)); }
private bool HasDuplicates(ComponentInstaller installer, List <ISnPatch> candidates) { return(candidates.Count(patch => patch.Type == PackageType.Install && patch.ComponentId == installer.ComponentId) > 1); }