private async Task ProcessLegacy(bool noCheckout, bool skipWhenFileMatches, IReadOnlyCollection<Package> packages) { await TrySyncObjects(noCheckout, skipWhenFileMatches, packages).ConfigureAwait(false); await CleanPackages(packages.Select(x => x.MetaData.ToSpecificVersion()).Distinct().ToArray(), packages.Select(x => x.MetaData.Name).Distinct().ToArray()).ConfigureAwait(false); }