Exemplo n.º 1
0
        async Task<List<Package>> GetDependencyTree(IEnumerable<Dependency> dependencies, bool noCheckout,
            bool useFullName) {
            var list = new List<string>();
            var list2 = new List<string>();
            var packages = new List<Package>();
            StatusRepo.Reset(RepoStatus.Resolving, dependencies.Count());

            foreach (var dep in dependencies) {
                var status = new Status(dep.GetFullName(), StatusRepo) {
                    Action = RepoStatus.Processing,
                    RealObject = "packages/" + dep + ".json"
                };
                await
                    ResolveDependencies(list, list2, packages, dep, useFullName, noCheckout)
                        .ConfigureAwait(false);
                status.EndOutput();
            }

            foreach (var package in packages)
                package.StatusRepo = StatusRepo;
            return packages;
        }
Exemplo n.º 2
0
 static void Status(string patchFile, StatusRepo repo, Action<IStatus> act,
     RepoStatus action = RepoStatus.Downloading) {
     var status = new Status(patchFile, repo) {Action = action};
     act(status);
     status.EndOutput();
 }