Sent to wine-devel to get feedback on initial idea and implementation.
New program in programs/getsffile (Get Sourceforge File). It downloads a file from Sourceforge download section, finding a suitable mirror by itself.
This should solve part of the mirroring problem we have for the Mozilla ActiveX control, to make it easy to install on demand, and can most probably be used by other similar things as well.
You can also specify a preferred mirror in the registry (Software\Wine\getsffile, key SFPreferredMirror. If the file is not available from that mirror (mirror down, not yet synced, etc.), it'll try another one (up to 3 times). The list of mirrors is got from sf.net, it's not maintained in getsffile.
Basically, to use it to get the Mozilla ActiveX control, what needs to be done is to actually put the control on sf (along with a zip containing 2 needed dlls, one of them is msvcp60.dll), and change the download logic in shdocvw to call getsffile for both files rather than do the download itself. The installation part is almost the same (it'd be nice if the zip would be installed at the same time, even nicer if it wouldn't be needed but that's Mozilla's part).
Note that it's still not 100% proof, some mirrors give a 404 back and it's not properly detected. Is it possible to detect such things while using URLDownloadToFile?
The whole dialog is ripped from shdocvw (Mike McCormack's work), the rest is my own development.
Vincent
On 01 May 2005 17:12:50 -0400, Vincent Béron vberon@mecano.gme.usherb.ca wrote:
New program in programs/getsffile (Get Sourceforge File). It downloads a file from Sourceforge download section, finding a suitable mirror by itself.
I think this same problem came up with winetest and winrash. Perhaps this could be incorporated into winrash for upgrades?
Also, as Dimi pointed out at WineConf, we need to change the DocumentRoot for test.winehq.org to point one level lower to where http://test.winehq.org/data/ currently is. We're still collecting data from winrash clients, so that's cool.
-Brian
It would be a useful feature to have. I'm still hoping someone will come along and take over winrash development. That hasn't happened yet. I'm not sure when I'd get a change to put such a feature in unless someone else wants to help out.
Chris
On Wednesday 04 May 2005 7:48 pm, Brian Vincent wrote:
On 01 May 2005 17:12:50 -0400, Vincent Béron
vberon@mecano.gme.usherb.ca wrote:
New program in programs/getsffile (Get Sourceforge File). It downloads a file from Sourceforge download section, finding a suitable mirror by itself.
I think this same problem came up with winetest and winrash. Perhaps this could be incorporated into winrash for upgrades?
Also, as Dimi pointed out at WineConf, we need to change the DocumentRoot for test.winehq.org to point one level lower to where http://test.winehq.org/data/ currently is. We're still collecting data from winrash clients, so that's cool.
-Brian
Maybe I'm being thick, but why do you need to change winrash for that?
Chris Morgan wrote:
It would be a useful feature to have. I'm still hoping someone will come along and take over winrash development. That hasn't happened yet. I'm not sure when I'd get a change to put such a feature in unless someone else wants to help out.
Chris
On Wednesday 04 May 2005 7:48 pm, Brian Vincent wrote:
On 01 May 2005 17:12:50 -0400, Vincent Béron
vberon@mecano.gme.usherb.ca wrote:
New program in programs/getsffile (Get Sourceforge File). It downloads a file from Sourceforge download section, finding a suitable mirror by itself.
I think this same problem came up with winetest and winrash. Perhaps this could be incorporated into winrash for upgrades?
Also, as Dimi pointed out at WineConf, we need to change the DocumentRoot for test.winehq.org to point one level lower to where http://test.winehq.org/data/ currently is. We're still collecting data from winrash clients, so that's cool.
-Brian
On 5/5/05, Jakob Eriksson jakov@vmlinux.org wrote:
Maybe I'm being thick, but why do you need to change winrash for that?
winrash has the ability to upgrade itself from sf. We could also host the winetest versions there, however the real problem is uploading to sf, so I'm not sure how important that part is.
-Brian