Comment 4 for bug 959369

Revision history for this message
James Tunnicliffe (dooferlad) wrote : Re: [Bug 959369] Re: remove click-through for snowball pinned_manifest.xml

It should be very easy to get the download script to cache the license
text of accepted licenses so they can be auto-accepted on subsequent
runs. I was working on this but had a higher priority interrupt :-)

I have been working on this in the context of linaro-fetch-image,
which will need to download some license protected files if it is
going to have full support for all our hardware so the library of
image fetching functions I have written give you an API that gives the
calling function a license text file and a way of accepting it. Yes,
it can be used to download files without ever reading a license, but
writing a script to do that is trivial anyway. The point is we have 1
set of functions that are maintained along with any changes to the
license pages.

Really, the ideal would be to do more of this server side, so every
automated download does something like:

dl.linaro.org/request?url=<url>
gets back a license (may be an empty string for no license)

dl.linaro.org/request?url=<url>&licnese=<md5sum>
performs the actual download.

This way if the license changes the application won't send the correct
md5sum and will be returned an appropriate error code.

--
James Tunnicliffe