diff --git a/Main.cs b/Main.cs index f4866f1ce6..3df7eb2076 100644 --- a/Main.cs +++ b/Main.cs @@ -263,12 +263,12 @@ private static int Update(UpdateOptions options, RegistryManager registry_manage { if (options.update_all) { - int updated = CKAN.Repo.UpdateAllRepositories(registry_manager, current_instance.Version(), user); + int updated = CKAN.Repo.UpdateAllRepositories(registry_manager, current_instance, user); user.RaiseMessage("Updated information on {0} available modules", updated); } else { - int updated = CKAN.Repo.Update(registry_manager, current_instance.Version(), user, true, options.repo); + int updated = CKAN.Repo.Update(registry_manager, current_instance, user, true, options.repo); user.RaiseMessage("Updated information on {0} available modules", updated); } }