summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
Commit message (Collapse)AuthorAge
* This mainly deals with code clarity- removing currently unneededAaron Griffin2007-01-24
| | | | | | | | | | 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>
* * Added some calloc calls to replace the malloc-then-set-to-zero functionalityAaron Griffin2007-01-23
| | | | | | * Fixed -Ss output so as not to call alpm_list_getdata with a NULl list * Added a NULL check in alpm_list_getdata * Fixed alpm_list_add_sorted to properly handle a new / beginning insertions
* Preliminary checkin for alpm_list conversionAaron Griffin2007-01-19
| | | | | | | | | * 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
* Jürgen Hötzel <juergen@hoetzel.info>Aaron Griffin2007-01-17
| | | | | | | | | | | | | | | | | | | | | | | | * avoid repeated regex compilations (regex for search string do not change while scanning the package database) * remove needless string duplication (regex function do not change target string nor free them) * code cleanup This patch improves search performance: bash-3.2$ time ./src/pacman/pacman.static.old -Ss "(database|web).*server" >/dev/null real 0m1.026s user 0m0.544s sys 0m0.208s bash-3.2$ time ./src/pacman/pacman.static -Ss "(database|web).*server" >/dev/null real 0m0.777s user 0m0.456s sys 0m0.128s bash-3.2$
* * modeline fixes / reformattingAaron Griffin2006-12-21
| | | | | | | * formatting / indentation fixes * makepkg: Dan McGee <dpmcgee@gmail.com> - integrity check fix Jürgen Hötzel <juergen@hoetzel.info> - EUID usage and "x$foo" check revamp
* * Cosmetic changes and typo fixesAaron Griffin2006-12-01
| | | | | * IgnorePkg and --ignore work again * Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
* * repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin2006-11-20
| | | | | | | | | | (no PKGBUILD) * libalpm api changes - move from a _getinfo(p, WHAT_WE_WANT) scheme to a typesafe _get_what_we_want(p) scheme [not 100% complete yet] * some const correctness changes * removal of PM_* types in alpm.h in favor of the pm*_t types used throughout libalpm
* Fixed pacman -U:Aaron Griffin2006-11-01
| | | | | | * 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
* Numerous changes:Aaron Griffin2006-10-31
| | | | | | | | | | | | * 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.
* Fixes from frugalware: few 'typos' included while patchingAaron Griffin2006-10-21
| | | | Also re-added Judd's dependancy fix in libalpm/deps.c
* Minor changes:Aaron Griffin2006-10-21
| | | | | * Moved the pmhandle_t extern decl around * Fixed a doxygen complaint
* A handful of minor changes:Aaron Griffin2006-10-20
| | | | | | | | * 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
* Merged frugalware changes (too many to list). Also added some config fileAaron Griffin2006-10-15
| | | | | handling changes (support [sections] to carry over to included files - this helps with backwards compatibility with existing pacman config files)
* first stage of i18n stuff from VMiklosJudd Vinet2006-05-15
|
* put back treename in db->pathAurelien Foret2006-03-14
|
* all _alpm_XXX_cmp functions are now publicAurelien Foret2006-03-08
|
* reworked the db object to prepare future integration with different backendsAurelien Foret2006-03-02
|
* improved _alpm_list_free handlingAurelien Foret2006-02-22
|
* dropped the MALLOC macroAurelien Foret2006-02-20
|
* FW: spaces -> tabs cosmetic fixJudd Vinet2006-02-20
|
* prepend library function names with _alpm (helped with the patch from ↵Aurelien Foret2006-02-17
| | | | | | VMiklos <vmiklos@frugalware.org>) added log and event callbacks to sync_commit internal transactions
* - db_write: add support to write both local and sync entriesAurelien Foret2006-02-16
| | | | - code cleanup
* - merged db_open and db_create into one single functionAurelien Foret2006-02-15
| | | | - moved the .lastupdate support to the frontend
* db_write: only write non-empty fields to databaseAurelien Foret2006-02-11
|
* cleaned up db_write error cases handlingAurelien Foret2006-01-27
|
* fixed potential file descriptor leaksAurelien Foret2006-01-27
|
* - merged pkg_new and pkg_dummy functionsAurelien Foret2006-01-09
| | | | - renamed _alpm_log_action to _alpm_logaction
* patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet2006-01-02
|
* applied first try at sync conflict handling (VMiklos) plus a couple changesJudd Vinet2005-12-26
|
* Code update to make use of PKG_FULLNAME_LENAurelien Foret2005-10-08
|
* Reworked the cache handling to only load DEPENDS info by defaultAurelien Foret2005-10-08
|
* Moved the REPLACES and FORCE package fields from DESC to DEPENDS db entryAurelien Foret2005-10-08
|
* Added a missing include for CYGWIN targetAurelien Foret2005-10-06
|
* Fixed an error logAurelien Foret2005-10-06
|
* changed license package field to a listAurelien Foret2005-08-20
|
* added some debug logsAurelien Foret2005-05-03
|
* code cleanupAurelien Foret2005-05-02
|
* fixed the format of %REASON% entry when writing itAurelien Foret2005-04-24
|
* - fixed a cut'n'paste bug with %REASON% entryAurelien Foret2005-04-24
| | | | - factorized code between %SIZE% and %CSIZE% reading
* - added 'lastupdate' field to pmdb_tAurelien Foret2005-04-02
| | | | | - added a new public function alpm_db_getinfo - added a public parameter PM_PKG_DB for PM_PKG struct
* put back 3 _alpm_log() callsAurelien Foret2005-03-29
|
* clearer string length for a strncpy callAurelien Foret2005-03-29
|
* Replaced snprintf calls by the SNPRINTF macro to avoid buffer overflows when ↵Aurelien Foret2005-03-29
| | | | copying strings
* improved logs (use _alpm_log instead of fprintf)Aurelien Foret2005-03-28
|
* moved db_find_conflicts from db.c to conflict.cAurelien Foret2005-03-22
|
* - added db_setlastupdate to db.cAurelien Foret2005-03-22
| | | | - moved db_update from db.c to alpm.c
* replaced rewinddir() calls by db_rewind()Aurelien Foret2005-03-20
|
* Added support for .lastupdate files (from pacman 2.9.1)Aurelien Foret2005-03-20
|
* Removed an hardcoded string lengthAurelien Foret2005-03-19
|
* Removed an hardcoded string lengthAurelien Foret2005-03-19
|