diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-04-08 14:17:12 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-04-08 14:17:12 +0400 |
commit | afea25471e31dca856114f77409b1b4d82fe6a71 (patch) | |
tree | 4969c2a7af134f72dd31aa2bddab796aa0955ef0 | |
parent | bf47003367d1b77f8839fee340779de2f4fcf49c (diff) |
* Mono.Addins.Setup/AddinStore.cs: Properly get the url path (old
way didn't work on windows).
svn path=/trunk/mono-addins/; revision=155037
-rw-r--r-- | Mono.Addins.Setup/ChangeLog | 5 | ||||
-rw-r--r-- | Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Mono.Addins.Setup/ChangeLog b/Mono.Addins.Setup/ChangeLog index e637551..746d920 100644 --- a/Mono.Addins.Setup/ChangeLog +++ b/Mono.Addins.Setup/ChangeLog @@ -1,5 +1,10 @@ 2010-04-08 Lluis Sanchez Gual <lluis@novell.com> + * Mono.Addins.Setup/AddinStore.cs: Properly get the url path + (old way didn't work on windows). + +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 diff --git a/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs b/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs index 5c29bfa..92b301d 100644 --- a/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs +++ b/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs @@ -597,7 +597,7 @@ namespace Mono.Addins.Setup { if (url.StartsWith ("file://")) { string tmpfile = Path.GetTempFileName (); - string path = url.Substring (7); + string path = new Uri (url).LocalPath; File.Delete (tmpfile); File.Copy (path, tmpfile); return tmpfile; |