Estimated read time: 1 minutes
till now the download code was in pacman's code which was meant that every frontend had to have its own downlaad code - causing a big code duplication. today i've pushed 15 patches to the pacman darcs repo which moved this functionality finally to the library :)
the patches:
- new event: PM_TRANS_EVT_RETRIEVE_LOCAL
- pm_dlfnm can be a simple char *
- pre-register databases to avoid code duplication
- pacman: use the libalpm downloader code, drop our own
- util: link to libftp, too
- _alpm_sync_commit(): download the packages, too
- alpm_db_getinfo(): strip the newlines from the end of lines
- alpm_db_getinfo(): added a PM_DB_FIRSTSERVER property
- alpm_db_update() now handles downloading, too
- libalpm: moved in _alpm_db_setlastupdate() and _alpm_db_getlastupdate()
- _alpm_fetch_pkgurl(): added the usual _alpm prefix
- _alpm_handle_set_option() more error handling for proxyhost and xfercommand
- handle_free() memleak fixes
- libalpm: new function: alpm_fetch_pkgurl()
- libalpm: moved in the download code