Skip to content

Commit

Permalink
Merge #4137 Allow licenses to be absent from netkans
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jul 31, 2024
2 parents 393544d + 36a1fd5 commit 701afa1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ All notable changes to this project will be documented in this file.
- [Build] Refactor + Modernise Actions (#4082, #4088, #4089, #4091, #4093, #4094, #4095, #4117 by: techman83, HebaruSan; reviewed: HebaruSan)
- [Multiple] Translation updates from Crowdin (#4105 by: vinix38, frankieorabona, ambition, Francesco Ricina, S.O.2; reviewed: HebaruSan)
- [Netkan] Allow string "Harmony" in DLL parent folder names (#4123 by: HebaruSan)
- [Netkan] Allow licenses to be absent from netkans (#4137 by: HebaruSan)

## v1.34.4 (Niven)

Expand Down
2 changes: 1 addition & 1 deletion Netkan/Transformers/SpacedockTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private Metadata TransformOne(Metadata metadata, JObject json, SpacedockMod sdMo
// "GPLv3" - Becomes "GPL-3.0"
// "LGPL" - Specific version is indeterminate

var sdLicense = sdMod.license.Trim();
var sdLicense = sdMod.license.Trim().Replace(' ', '-');

switch (sdLicense)
{
Expand Down
1 change: 1 addition & 0 deletions Netkan/Validators/CkanValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public CkanValidator(IHttpService downloader, IModuleService moduleService, IGam
new IsCkanModuleValidator(),
new DownloadArrayValidator(),
new TagsValidator(),
new LicensesValidator(),
new InstallsFilesValidator(downloader, moduleService, game),
new MatchesKnownGameVersionsValidator(game),
new ObeysCKANSchemaValidator(),
Expand Down
1 change: 0 additions & 1 deletion Netkan/Validators/NetkanValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public NetkanValidator()
new KrefValidator(),
new AlphaNumericIdentifierValidator(),
new RelationshipsValidator(),
new LicensesValidator(),
new KrefDownloadMutexValidator(),
new DownloadVersionValidator(),
new OverrideValidator(),
Expand Down

0 comments on commit 701afa1

Please sign in to comment.