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? > > -Dan > _______________________________________________ > pacman-dev mailing list > [email protected] > http://www.archlinux.org/mailman/listinfo/pacman-dev -- ------------------- Dario Freddi KDE Developer GPG Key Signature: 511A9A3B
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ pacman-dev mailing list [email protected] http://www.archlinux.org/mailman/listinfo/pacman-dev
