diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-04-08 14:06:45 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-04-08 14:06:45 +0400 |
commit | bf47003367d1b77f8839fee340779de2f4fcf49c (patch) | |
tree | fbb322bee67bc5a59752c3e89b40d93321efbe06 | |
parent | fe0994050cb83d4815a33786a4dc368a8a36d27f (diff) |
* Mono.Addins.Setup/RepositoryRegistry.cs: GetAvailableUpdates
(id,version) doesn't work. It makes no sense to ask for updates for
a specific add-in version. Added GetAvaliableAddinUpdates methods
which take only an id and no version.
svn path=/trunk/mono-addins/; revision=155033
-rw-r--r-- | Mono.Addins.Setup/ChangeLog | 8 | ||||
-rw-r--r-- | Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Mono.Addins.Setup/ChangeLog b/Mono.Addins.Setup/ChangeLog index 589cfdc..e637551 100644 --- a/Mono.Addins.Setup/ChangeLog +++ b/Mono.Addins.Setup/ChangeLog @@ -1,3 +1,11 @@ +2010-04-08 Lluis Sanchez Gual <lluis@novell.com> + + * Mono.Addins.Setup/RepositoryRegistry.cs: GetAvailableUpdates + (id,version) doesn't work. It makes no sense to ask for + updates for a specific add-in version. Added + GetAvaliableAddinUpdates methods which take only an id and + no version. + 2010-03-30 Lluis Sanchez Gual <lluis@novell.com> * Mono.Addins.Setup.csproj: csc doesn't like iso-2. diff --git a/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs b/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs index 84455b6..fde9509 100644 --- a/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs +++ b/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs @@ -249,16 +249,28 @@ namespace Mono.Addins.Setup return GetAvailableAddin (repositoryUrl, null, null, true); } + [Obsolete ("Use GetAvailableAddinUpdates (id) instead")] public AddinRepositoryEntry[] GetAvailableUpdates (string id, string version) { return GetAvailableAddin (null, id, version, true); } + [Obsolete ("Use GetAvailableAddinUpdates (repositoryUrl, id) instead")] public AddinRepositoryEntry[] GetAvailableUpdates (string repositoryUrl, string id, string version) { return GetAvailableAddin (repositoryUrl, id, version, true); } + public AddinRepositoryEntry[] GetAvailableAddinUpdates (string id) + { + return GetAvailableAddin (null, id, null, true); + } + + public AddinRepositoryEntry[] GetAvailableAddinUpdates (string repositoryUrl, string id) + { + return GetAvailableAddin (repositoryUrl, id, null, true); + } + public AddinRepositoryEntry[] GetAvailableAddins () { return GetAvailableAddin (null, null, null, false); |