Skip to content

Commit

Permalink
Merge #4294 Spacedock transformer: remove version string -> release_s…
Browse files Browse the repository at this point in the history
…tatus parsing
  • Loading branch information
HebaruSan committed Jan 28, 2025
2 parents 21b1879 + 12793cc commit 644cf5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All notable changes to this project will be documented in this file.
- [Multiple] Sort dependencies first in modpacks (#4252 by: HebaruSan)
- [Multiple] Allow installs and removals to be cancelled (#4253 by: HebaruSan)
- [CLI] Include `supports` relationship in `ckan show` (#4262 by: HebaruSan)
- [Multiple] Pre-release handling (#4260, #4266 by: HebaruSan)
- [Multiple] Pre-release handling (#4260, #4266, #4294 by: HebaruSan, JonnyOThan)
- [Multiple] French translation updates (#4268 by: HebaruSan)

### Bugfixes
Expand Down
11 changes: 0 additions & 11 deletions Netkan/Transformers/SpacedockTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ private Metadata TransformOne(Metadata metadata, JObject json, SpacedockMod sdMo
var sdLicense => sdLicense,
});

if (ver?.ToLower() is string lowerV
&& preReleaseSubstrings.Any(substr => lowerV.Contains(substr)))
{
json.SafeAdd("release_status", "testing");
}

// Make sure resources exist.
if (json["resources"] == null)
{
Expand Down Expand Up @@ -196,10 +190,5 @@ private static void TryAddResourceURL(string identifier, JObject? resources, str
private static readonly Regex githubUrlPathPattern =
new Regex("^/(?<owner>[^/]+)/(?<repo>[^/]+)",
RegexOptions.Compiled);

private static readonly string[] preReleaseSubstrings = new string[]
{
"pre", "alpha", "beta",
};
}
}

0 comments on commit 644cf5f

Please sign in to comment.