summaryrefslogtreecommitdiff
path: root/lib/libalpm/cache.c
AgeCommit message (Collapse)Author
2007-01-30K. Piche <kevin.piche@cgi.com>Aaron Griffin
* ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
2007-01-30Discussed on IRC for a bit, this makes the following changes for clarity:Dan McGee
* alpm_list_is_in --> alpm_list_find * alpm_list_is_strin --> alpm_list_find_str * Flip parameters of both functions to be inline with rest of alpm_list. First commit, woohoo.
2007-01-24* Shuffled some of the alpm_list free funtions - still not perfect, but betterAaron Griffin
* Added alpm_list_remove_node for single list node removal * Proper error checking/output for failed db_read/db_write (missing files) * Invalid packages (missing files) are now removed from the package cache * -Qs and -Ss output now look the same * config.rpath causes errors on one machine I had, so I added it to CVS * Fixed a "clobbered memory" issue when installing groups - only the outer list should be free'd, not the contained data
2007-01-24This mainly deals with code clarity- removing currently unneededAaron Griffin
optimizations in order to make the code much more readable and type-checkable. Every enum in the library now has it's own type that should be used instead of the generic 'unsigned char'. In addition, several #define statements dealing with constants were converted to enums. Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin
* renamed pmlist_t -> alpm_list_t * made alpm_list_t a public type (alpm_list.h header) * removed additional storage for registered DBs in pacman source * some code cleanup * removed duplicate (pm)list_display functions from pacman source * misc code cleanup
2007-01-11* Jürgen Hötzel <juergen@hoetzel.info>Aaron Griffin
_alpm_db_load_pkgcache: use mergesort to improve performance
2006-11-01Fixed pacman -U:Aaron Griffin
* Accidental database read of a file-based package (whoops) * Proper fetching of url-based -U or -A Removed some newlines from _alpm_log calls, to make debug output more concise
2006-10-31Numerous changes:Aaron Griffin
* Furthered the "lazy caching" to force the pkgcache to read nothing (INFRQ_NONE) by default. Anything requiring package data should now check the infolevel of each package and attempt to update it. This could be ironed out a bit more later (by using the front-end get_info function * Switched to libfetch. Drastic changes to the download code and the callback progress bar functions. Also fixed the return value of _alpm_downloadfiles_forreal. Downloading now supports http, ftp, https, and files urls, along with 'mtime's and numerous other fancy features from libfetch.
2006-10-20A handful of minor changes:Aaron Griffin
* Removed the PMList typedef, in favor of the same naming scheme other structs use 'pmlist_t' * Added a time stamp on debug output, to make it more informational * Moved alpm_db_register to _alpm_db_register, making the public function not take a callback parameter
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet
2006-03-08all _alpm_XXX_cmp functions are now publicAurelien Foret
2006-03-07fixed a commentaryAurelien Foret
2006-03-07code cleanupAurelien Foret
2006-03-04make cache works when loading it with DEPENDS info onlyAurelien Foret
2006-02-17prepend library function names with _alpm (helped with the patch from ↵Aurelien Foret
VMiklos <vmiklos@frugalware.org>) added log and event callbacks to sync_commit internal transactions
2006-01-18more code cleanup yetAurelien Foret
2006-01-16more code cleanupAurelien Foret
2006-01-02code cleanupAurelien Foret
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet
2005-12-31added a debug log when freeing the package cacheAurelien Foret
2005-10-20added INFRQ_DESC back to the package cache so the group cache will workJudd Vinet
2005-10-08Reworked the cache handling to only load DEPENDS info by defaultAurelien Foret
2005-05-03make use of the new list_remove implementationAurelien Foret
2005-04-24logs cleanupAurelien Foret
2005-04-23rework the cache handling to avoid as much as possible calls to db_scan()Aurelien Foret
2005-04-05added logs for cache generationAurelien Foret
2005-03-29Replaced snprintf calls by the SNPRINTF macro to avoid buffer overflows when ↵Aurelien Foret
copying strings
2005-03-28added a FREELISTPTR macro to free a PMList without freeing its dataAurelien Foret
2005-03-15Initial revisionJudd Vinet