Skip to content

Commit

Permalink
Sort after spec version
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Aug 13, 2024
1 parent 7c5174d commit 4d61e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Netkan/Processors/Inflator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ internal IEnumerable<Metadata> Inflate(string filename, Metadata[] netkans, Tran
.GroupBy(module => module.Version)
.Select(grp => Metadata.Merge(grp.ToArray()))
.SelectMany(merged => specVersionTransformer.Transform(merged, opts))
.SelectMany(withSpecVersion => sortTransformer.Transform(withSpecVersion, opts))
.ToList();
log.Debug("Finished transformation");

Expand Down Expand Up @@ -122,6 +123,7 @@ private static void PurgeDownloads(IHttpService http, NetFileCache cache)

private readonly NetkanTransformer transformer;
private readonly SpecVersionTransformer specVersionTransformer = new SpecVersionTransformer();
private readonly PropertySortTransformer sortTransformer = new PropertySortTransformer();

private readonly NetkanValidator netkanValidator = new NetkanValidator();
private readonly CkanValidator ckanValidator;
Expand Down

0 comments on commit 4d61e27

Please sign in to comment.