summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/remove.c
AgeCommit message (Collapse)AuthorFilesLines
2007-02-13* Refactored conflict checking within packages. Profiling from Dan showed anAaron Griffin1-9/+1
unbelievable amount of strcmp() calls (25 million) due to the list searching. This has been reimplemented with a set-intersection scheme, due to the fact that file lists are always ordered. - NEEDS TESTING * Minor clean up, "globalized" the str_cmp helper to match the alpm comparison signature, so we can use it elsewhere.
2007-02-12This should be an ERROR, not a WARNINGAaron Griffin1-1/+1
2007-02-08Attempt to NOT remove packages on filesystem errors (like a read-onlyAaron Griffin1-27/+68
filesystem). See FS#5887
2007-01-31Debug logging changes:Aaron Griffin1-13/+13
* 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 Griffin1-0/+8
* 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 McGee1-2/+3
* 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-23James Rosten <seinfeld90@gmail.com>Aaron Griffin1-3/+4
* attempt to unlink file AFTER moving to .pacsave always fails
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin1-18/+18
* 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-18Some confusion with variable names in unlink_file caused unlink to try and ↵Aaron Griffin1-8/+8
find the _relative_ file instead of absolute. The absolute path name has also been used in some of the output there too.
2007-01-18Added strerror() output on unlink failureAaron Griffin1-68/+70
2007-01-17James Rosten <seinfeld90@gmail.com>Aaron Griffin1-80/+77
* _alpm_remove_commit refactoring * clean up/fixes by Dan McGee <dpmcgee@gmail.com>
2007-01-03* Bug fix FS#6058Aaron Griffin1-0/+2
properly remove entries from "Required By" instead of wiping it out entirely
2006-12-01* Cosmetic changes and typo fixesAaron Griffin1-1/+2
* IgnorePkg and --ignore work again * Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
2006-11-24* Fixed some error output for "-Sd" and "-Rsc" dealing with missing/ignoredAaron Griffin1-2/+2
depends * Added valgrind suppression file
2006-10-31Numerous changes:Aaron Griffin1-2/+4
* 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-21Minor changes:Aaron Griffin1-2/+0
* Moved the pmhandle_t extern decl around * Fixed a doxygen complaint
2006-10-20A handful of minor changes:Aaron Griffin1-6/+6
* 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-15Merged frugalware changes (too many to list). Also added some config fileAaron Griffin1-8/+43
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 Vinet1-1/+5
DB in an inconsistent state
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-28/+29
2006-03-07added a NOSCRIPLET flag to transactions (patch from VMiklos ↵Aurelien Foret1-2/+2
<vmiklos@frugalware.org>)
2006-03-02code cleanupAurelien Foret1-3/+1
2006-02-17prepend library function names with _alpm (helped with the patch from ↵Aurelien Foret1-20/+20
VMiklos <vmiklos@frugalware.org>) added log and event callbacks to sync_commit internal transactions
2006-02-12reworked logsAurelien Foret1-4/+4
2006-02-05code cleanupAurelien Foret1-2/+2
2006-01-18more code cleanup yetAurelien Foret1-5/+11
2006-01-17- code cleanupAurelien Foret1-0/+1
- log improvements
2006-01-16more code cleanupAurelien Foret1-18/+19
2006-01-15pulled out conflict checkings from checkdeps() in its own function: ↵Aurelien Foret1-1/+4
checkconflicts()
2006-01-07removed a restriction: the data parameter of XXX_prepare functions can be NULLAurelien Foret1-2/+3
2006-01-06removed ORE tags (after tests, no real performance increase by implementing ↵Aurelien Foret1-5/+0
them)
2006-01-05- started to rename list_XXX calls to _alpm_list_XXXAurelien Foret1-1/+1
- fixed 2 compilation warnings
2006-01-05tweaked a log (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret1-1/+1
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet1-1/+1
2005-12-28Fixed some logging issues (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret1-1/+0
2005-12-26renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.czJudd Vinet1-1/+1
2005-10-07Merging in recent fixes/additions from 2.9.7Judd Vinet1-19/+33
2005-10-06Added a CYGWIN define to include header files required to build in a Cygwin ↵Aurelien Foret1-0/+3
environment
2005-05-04fixed a memory leak with md5 sums handlingAurelien Foret1-1/+3
2005-05-04event transaction callback rework to prepare the introduction of a ↵Aurelien Foret1-4/+4
conversation callback
2005-05-03code cleanupAurelien Foret1-3/+3
2005-05-03make use of the new list_remove implementationAurelien Foret1-8/+11
2005-04-24avoided to load twice the same target in remove_loadtarget()Aurelien Foret1-0/+7
2005-04-24some more efficiency in remove_prepare() cascade loopAurelien Foret1-4/+4
2005-04-23rework the cache handling to avoid as much as possible calls to db_scan()Aurelien Foret1-7/+7
2005-04-17improved logs for package removalAurelien Foret1-1/+3
2005-04-16reworked transaction prototypesAurelien Foret1-3/+3
2005-04-08fixed a small memory leakAurelien Foret1-0/+2
2005-04-06reverted back to trans->packages instead of install and remove queuesAurelien Foret1-10/+10
2005-04-06replaced transaction 'packages' field by 2 queues: one for packages to be ↵Aurelien Foret1-11/+14
installed and the other for the ones to be removed