Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
AgeCommit message (Collapse)Author
2007-02-09* I made "alpm_versioncmp" public a while back, without noticing this was ↵Aaron Griffin
already done (alpm_pkg_vercmp). I dropped this change, making versioncmp "private" again. (alpm_versioncmp -> _alpm_versioncmp, hidden symbol) * Make alpm_get_upgrades use the same version check that -Su and -S use.
2007-02-07Spruced up the TODOs a bit, got rid of some of them since a lot of it wasDan McGee
duplicate anyway. Also removed the last of the ORE tags and replaced them with TODOs.
2007-02-07Copy/pasta error in alpm_get_upgrades that caused a segfaultAaron Griffin
2007-02-04Implemented a crappy version of -Qu (query upgrades). This simply outputs theAaron Griffin
packages to be upgraded in a -Su operation. Much of the code is duplicated from sync.c. TODO: move the implementation to upgrades.c, and reimplement the sync_sysupgrade function in terms of this: trans->packages = alpm_get_upgrades();
2007-01-31Debug logging changes:Aaron Griffin
* The --debug params were goofy. New setup allows --debug without params, --debug=<level> where level 1=debug output, 2=debug and download output, 3=debug, download, and function tracing output. This seems more sane to me. * Removed PM_LOG_FLOW1 and PM_LOG_FLOW2. They were just confusing. When adding new functions, it is near impossible to determin if your output should be "flow1" or "flow2" without tracking all the way up the call chain. Rarely would one ever say "ok, lets just show "flow2" output. These have both been replaced with PM_LOG_DEBUG * Removed the need for the root parameter on alpm_initialize. it is now defaulted to PM_ROOT just like dbpath and cachedir. This allows alpm to be initialized BEFORE option parsing in the front end, saving us some duplicate variables in the frontend. * Cleaned up front end variables due to early alpm_initialize call.
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-30K. Piche <kpiche@rogers.com>Aaron Griffin
* gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions
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-26Dan McGee <dpmcgee@gmail.com>Aaron Griffin
* Lots of code cleanup, and type fixes * Make 'makeworld' a bit more in-line with the other stuff * Make -Si and -Qi operations appear the same
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-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin
* Removed some unnecessary headers and library links * Made things static if possible * Cleaned up makefiles a bit * Fixed some old comments in the code * Fixed some errors the static code checker splint pointed out * Backwards arguments in a memset call in _alpm_db_read (could have been worse) * Other various small fixes Other: * Default to 80 columns when getcols cannot determine display width * Removal of ._install as a valid install file in packages
2007-01-11* Dan McGee <dpmcgee@gmail.com>Aaron Griffin
Documentation cleanup
2007-01-03* bug fix FS#6100 - fix --print-uris outputAaron Griffin
2006-12-01* Cosmetic changes and typo fixesAaron Griffin
* IgnorePkg and --ignore work again * Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
2006-11-22* Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)Aaron Griffin
* Modified some dependancy checking * Changed "performing local database upgrade" message to be more clear * Change 'usize' to 'isize' in database files * Scriptlet output is now sent to pacman's log file * Limited some debugging output to be more clear
2006-11-20* repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin
(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
2006-11-15* Initial changes to gensync - makepkg changes were not checked in from anotherAaron Griffin
machine - still pending * Addition of _alpm_pkg_makefilename to simplify the with/without -ARCH prefix scheme we're going with for the interim
2006-11-14* Numerous mini valgrind fixes.Aaron Griffin
* Addition of hacky architecture check in the _splitname function * Removal of libfetch from the archlinux proper - it has been renamed to libdownload and can be found at http://phraktured.net/libdownload * Merge of _some_ of the Frugalware makepkg change - this may still be incomplete * Removal of libftp from cvs proper * PKGBUILD manpage now says 'PKGBUILD' instead of FrugalBuild (he he)
2006-11-08* Improved mcheck outputAaron Griffin
* Added minor libalpm const correctness * Mini-memory fixes
2006-11-08* Fixed an error message that should be a debug messageAaron Griffin
* Fixed "the big segfault" - dbs_sync list was being modified while iterating * over the list, big No-No. Now using a while loop over alpm_list_count.
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-27Fri Oct 27 21:54:32 CEST 2006 VMiklos <vmiklos@frugalware.org>Aaron Griffin
* alpm_parse_config(): add missing sanity checks From: http://darcs.frugalware.org/patches/pacman/20061027195432-e2957-0dcda6bdb2d7516d6a5047185bc14ccdf3fb83fc.patch
2006-10-25Moved downloaded db unpacking to the backend files, to easier allow conversionAaron Griffin
from db to whatever format we need.
2006-10-24Added PM_DLFNM_LEN define, via VMiklosAaron Griffin
http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=commitdiff;h=20061023154138-e2957-de4837230b091cbc2136306e1c55a4b79cc72fc8.gz
2006-10-21Fixes from frugalware: few 'typos' included while patchingAaron Griffin
Also re-added Judd's dependancy fix in libalpm/deps.c
2006-10-21Minor changes:Aaron Griffin
* Moved the pmhandle_t extern decl around * Fixed a doxygen complaint
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-10-19From VMiklos <vmiklos@frugalware.org>Aaron Griffin
* alpm_db_update() fix up the level parameter till now when it was "1", it meant false, which was not in sync with the C logic :)
2006-10-19Fixed doxygen commentsAaron Griffin
2006-10-15Merged frugalware changes (too many to list). Also added some config fileAaron Griffin
handling changes (support [sections] to carry over to included files - this helps with backwards compatibility with existing pacman config files)
2006-07-14Patch from FW: Better control over CTRL-C interruptions -- do not leave the ↵Judd Vinet
DB in an inconsistent state
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet
2006-03-21fixed a regression (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret
2006-03-14put back treename in db->pathAurelien Foret
2006-03-08all _alpm_XXX_cmp functions are now publicAurelien Foret
2006-03-07prepare code for cache loaded with only DEPENDSAurelien Foret
2006-03-04- changed flags type from char to intAurelien Foret
- downloadonly implies FLAG_NOCONFLICTS
2006-03-04fixed alpm_db_update extraction pathAurelien Foret
2006-03-02reworked the db object to prepare future integration with different backendsAurelien Foret
2006-02-20checkmd5sums enhancementsAurelien 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-02-16- db_write: add support to write both local and sync entriesAurelien Foret
- code cleanup
2006-02-15removed a leftover commentAurelien Foret
2006-02-15- merged db_open and db_create into one single functionAurelien Foret
- moved the .lastupdate support to the frontend
2006-02-07error codes cleanupAurelien Foret
2006-02-05added alpm_pkg_checkmd5sum() to check md5sums for package from the cacheAurelien Foret
2006-02-05added a pmconflict_t structure to handle file conflictsAurelien Foret
2006-02-01doxygen support: added @brief field (patch from VMiklos ↵Aurelien Foret
<vmiklos@frugalware.org>)