Index ¦ Archives ¦ RSS

pacman -> libalpm migration

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:

  1. new event: PM_TRANS_EVT_RETRIEVE_LOCAL
  2. pm_dlfnm can be a simple char *
  3. pre-register databases to avoid code duplication
  4. pacman: use the libalpm downloader code, drop our own
  5. util: link to libftp, too
  6. _alpm_sync_commit(): download the packages, too
  7. alpm_db_getinfo(): strip the newlines from the end of lines
  8. alpm_db_getinfo(): added a PM_DB_FIRSTSERVER property
  9. alpm_db_update() now handles downloading, too
  10. libalpm: moved in _alpm_db_setlastupdate() and _alpm_db_getlastupdate()
  11. _alpm_fetch_pkgurl(): added the usual _alpm prefix
  12. _alpm_handle_set_option() more error handling for proxyhost and xfercommand
  13. handle_free() memleak fixes
  14. libalpm: new function: alpm_fetch_pkgurl()
  15. libalpm: moved in the download code

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.