Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
CKAN can be configured to retrieve module metadata from multiple sources, called "repositories." The vast majority of users only use one repository. Alternate repositories are typically used to allow users to opt-in to bleeding edge releases of specific mods (e.g. MechJeb2 and Kopernicus).
Problems
Loading modules from {0} repository...
was not internationalizedCmdLine
ckan repo list
uses a weird format different from the tabular output of most other commandsLoading modules from {0} repository...
was displayed on many lines during updatesGUI
Causes
This summary comment is false:
CKAN/Core/Registry/Registry.cs
Lines 77 to 86 in 2a5a94c
SortedDictionary
sorts only by the key (in this case the name). (The specific sorting logic applied to the key can only be changed by passing anIComparer
to the dictionary's constructor, which was never done here, but wouldn't have helped anyway if it had been since the priority is part of the value rather than the key). SoRegistry.Repositories
has always only been sorted by name; the priority did nothing.Changes
Loading modules from {0} repository...
is internationalizedCmdLine
ckan repo priority
command lets you set a repository's priorityckan repo list
uses a tabular output format like other commandsckan repo add
andckan repo default
set the priority of the new repository to the next available numberckan repo add
will refuse to add multiple repositories with the same URLckan repo forget
adjusts the priorities of the remaining repositories after removing one to ensure they're unique and without duplicates or gapsLoading modules from {0} repository...
includes the word "download" so it will overwrite itself and show percentagesGUI