Пример #1
0
 private bool ValidInstaller(ComponentInstaller installer)
 {
     if (!CheckSelfDependency(installer))
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
        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));
        }
Пример #3
0
 private bool HasDuplicates(ComponentInstaller installer, List <ISnPatch> candidates)
 {
     return(candidates.Count(patch => patch.Type == PackageType.Install &&
                             patch.ComponentId == installer.ComponentId) > 1);
 }