Skip to content

Commit

Permalink
Merge #2211 Install version from file when installing from file
Browse files Browse the repository at this point in the history
  • Loading branch information
politas committed Dec 13, 2017
1 parent fd86fd2 commit fd270eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
- [CLI] Dispose registry managers before exit to prevent exceptions (#2203 by: HebaruSan; reviewed: politas)
- [GUI/CLI] Avoid NRE in install-from-ckan (#2205 by: HebaruSan; reviewed: politas)
- [GUI] Avoid NRE in TooManyModsProvide (#2209 by: HebaruSan; reviewed: politas)
- [Core] Install version from file when installing from file (#2211 by: HebaruSan; reviewed: politas)

### Internal

Expand Down
3 changes: 2 additions & 1 deletion Cmdline/Action/Install.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public int RunCommand(CKAN.KSP ksp, object raw_options)
// Parse the JSON file.
try
{
options.modules.Add(LoadCkanFromFile(ksp, filename).identifier);
CkanModule m = LoadCkanFromFile(ksp, filename);
options.modules.Add($"{m.identifier}={m.version}");
}
catch (Kraken kraken)
{
Expand Down

0 comments on commit fd270eb

Please sign in to comment.