[pacman-dev] [PATCH] Add a fetch callback to allow front-end download support
drf54321 at gmail.com
Sun Mar 29 06:27:45 EDT 2009
On Saturday 28 March 2009 23:06:07 Dan McGee wrote:
> Because we don't have mtimenew- thats a pointer being passed in that
> gets filled by the method so we can use the value when we come back
> from the download callback. The fetch method has to do something (such
> as a HEAD request) first before the compare can be done.
Exactly as Dan says. In my first implementation I added a head retrival first
to check & store the last modification time of the file I'm trying to
download, and if the times don't match, I proceed with the download.
Uhm, I also wonder: a better implementation (but I know it's harder) would be
having a callback that sends a list files to download (maybe pack all needed
information in a struct and send a linked list), so that frontends could
implement some better download methods (like apt does, for example). Then
libalpm would have a callback to proceed with the operation. I could give a
try and implement it, what do you think?
> pacman-dev mailing list
> pacman-dev at archlinux.org
GPG Key Signature: 511A9A3B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part.
More information about the pacman-dev