diff --git a/ModuleInstaller.cs b/ModuleInstaller.cs index d279700bf9..9599092a43 100644 --- a/ModuleInstaller.cs +++ b/ModuleInstaller.cs @@ -325,12 +325,12 @@ void InstallComponent (dynamic stanza, ZipFile zipfile, Dictionary modules, RelationshipResolverOptions o } + /// + /// Returns the default options for relationship resolution. + /// + public static RelationshipResolverOptions DefaultOpts() + { + var opts = new RelationshipResolverOptions (); + opts.with_recommends = true; + opts.with_suggests = false; + opts.with_all_suggests = false; + + return opts; + } + // Resolve all relationships for a module. // May recurse to ResolveStanza. private void Resolve(CkanModule module, RelationshipResolverOptions options) { diff --git a/Types/Version.cs b/Types/Version.cs index 225666d385..84108c2266 100644 --- a/Types/Version.cs +++ b/Types/Version.cs @@ -20,9 +20,9 @@ struct Comparison { public string remainder1; public string remainder2; } - + public Version (string version_string) { - orig_string = version_string; + orig_string = version_string; // TODO: Can we get rid of $1 here? Does C# support (?:syntax)? Match match = Regex.Match (version_string, "^(([0-9]+):)?(.*)$");