summaryrefslogtreecommitdiff
path: root/lib/libalpm/remove.c
Commit message (Collapse)AuthorAge
* Clean up gettext on the libalpm sideDan McGee2007-04-26
| | | | | | | Remove inclusion of libintl.h from all files, because we can do it once in util.c where the _() macro is defined. Signed-off-by: Dan McGee <dan@archlinux.org>
* Really run scriptlet on pre_remove and post_removeRoman Kyrylych2007-04-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Move the 100% progress bar call before remove scriptlet for output reasonsVMiklos2007-04-01
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* * Correct install scriptlet usage (reuse of handle->root when not needed)Aaron Griffin2007-03-22
| | | | | * Skip running scriptlet when chroot fails - to prevent issues in the host filesystem
* * Two fixes when running under a new root (-r|--root)Aaron Griffin2007-03-09
| | | | | | | | | - Check EACCES in can_remove_file, to verify - we're only checking for a read-only FS here... if write permissions fail, we can still remove it - Switched the message when creating DB directories from an error to a debug message * Fix the dep tests once and for all (it wasn't working for provides=() packages)
* This commit looks much more monumental than it is. Almost all just #includeDan McGee2007-03-05
| | | | | | | | reordering and adding ones that were forgotten (noticed when trying to compile after reordering). * Updated the HACKING file to include information on #include usage. * print -> vprint in "making dir" function in pactest.
* * Maybe that call to _alpm_trans_update_depends was necessary. Added it backDan McGee2007-03-04
| | | | in but did it right by duplicating the package first.
* * Remove unnecessary call to _alpm_trans_update_depends that was erroringDan McGee2007-03-03
| | | | | anyway. * Spelling/commenting etc.
* Big commit this time:Aaron Griffin2007-03-03
| | | | | | | | | | | | | | | | | | | | | | | * Moved entirely to alpm_pkg_get_* accessors, to read data on demand * Mostly removed the INFRQ_ parameters from outside the be_files backend (making the backend more extensible in the long run) * packages created from _alpm_db_scan now have the db and origin set (making accessors actually work for these packages) * removed _alpm_db_ensure_pkgcache * totally revamped the _alpm_checkconflicts function, making it cleaner and easier to read (and thus fix in the long run) - maintainable code ftw NOTE: feel free to rename the functions... I couldn't think of anything better * removed an extra loop in sync.c:find_replacements - no sense in looping over an entire DB while strcmp'ing the name, when we have get_pkgfromcache Other: * package struct "license" -> "licenses" * Created _alpm_sync_find (duplicate code in some places, find_pkginsync * Minor const correctness changes along the way * fixed a couple extra '/' pathing issues (non-issues really) * removed a duplicate pkg_cmp function
* * Enforce const char* params when using stringsAaron Griffin2007-02-26
| | | | | | | * Unified some functions names "package" -> "pkg" for consistency * Removed the goofy 'faketarget' stuff used for dep testing * Renamed alpm_pkg_isin -> alpm_pkg_find * Renamed alpm_db_readpkg -> alpm_db_get_pkg
* * Re-added a compare function for syncpkg's - it was removed without thinkingAaron Griffin2007-02-21
| | | | | | | | | | | | | | | properly * Error when re-reading the DB for replacements, wrong info level * Removed an duplicate debug message "checking for package replacements" * Check ignorepkg for REAL upgrades... * Properly check the NOSAVE flag * some unlink_file (remove.c) cleanup * fix indent level on handle.c * Force libalpm paths to end with a '/' char * Fixed 'target' looping in conflict.c (pmsyncpkg_t, not pmpkg_t) * Added some debug output to cache and db scanning ** All pactest tests succeed again, yay **
* * Updated conflict checking one last time. You can finally have a file moveDan McGee2007-02-20
| | | | | | | | | | from one package to another seemlessly (knock on wood). This is implemented through the use of two skip lists in the trans struct- skip_add and skip_remove, which replace the former trans->skiplist. * Removed an unnecessary function parameter, added a necessary one. * If a package has no backup files, print '(none)' under the heading so it is more obvious. * Updated my TODO list.
* * Updated bash_completion script to 3.0 options.Dan McGee2007-02-19
| | | | | * Changed that removal message again, hopefully it sounds good now. * Shortened a usage option description so it would not wrap at 81 chars.
* * Added some improved debug output to file conflict checking.Dan McGee2007-02-19
| | | | | * Small change to string in remove.c (translators may or may not have to worry about this, depending on their already existing translation).
* Moved the update_depends function to trans.c, as it depends on a transactionAaron Griffin2007-02-18
| | | | object
* * A whole mess of backup changesAaron Griffin2007-02-17
| | | | | | | | | | | | - the code should be clearer, more organized, commented, and have worthwhile variable names now - proactive backup=()s now work. That is, adding a file to a backup array does what it should on the upgrade to that package, no longer forcing you to wait a full upgrade cycle for it to take effect * ldconfig was being run twice on an upgrade operation - fixed * fixed another pm_fprintf/printf output corruption with the progress bars * refactored some duplicate code for adjusting 'requiredby' lists * Added config.rpath to .cvsignore
* * Refactored conflict checking within packages. Profiling from Dan showed anAaron Griffin2007-02-13
| | | | | | | | 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.
* This should be an ERROR, not a WARNINGAaron Griffin2007-02-12
|
* Attempt to NOT remove packages on filesystem errors (like a read-onlyAaron Griffin2007-02-08
| | | | filesystem). See FS#5887
* Debug logging changes:Aaron Griffin2007-01-31
| | | | | | | | | | | | | | | | * 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.
* K. Piche <kevin.piche@cgi.com>Aaron Griffin2007-01-30
| | | | * ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
* Discussed on IRC for a bit, this makes the following changes for clarity:Dan McGee2007-01-30
| | | | | | | | * 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.
* James Rosten <seinfeld90@gmail.com>Aaron Griffin2007-01-23
| | | | * attempt to unlink file AFTER moving to .pacsave always fails
* 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
* Some confusion with variable names in unlink_file caused unlink to try and ↵Aaron Griffin2007-01-18
| | | | find the _relative_ file instead of absolute. The absolute path name has also been used in some of the output there too.
* Added strerror() output on unlink failureAaron Griffin2007-01-18
|
* James Rosten <seinfeld90@gmail.com>Aaron Griffin2007-01-17
| | | | | * _alpm_remove_commit refactoring * clean up/fixes by Dan McGee <dpmcgee@gmail.com>
* * Bug fix FS#6058Aaron Griffin2007-01-03
| | | | properly remove entries from "Required By" instead of wiping it out entirely
* * 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)
* * Fixed some error output for "-Sd" and "-Rsc" dealing with missing/ignoredAaron Griffin2006-11-24
| | | | | depends * Added valgrind suppression file
* 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.
* 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)
* Patch from FW: Better control over CTRL-C interruptions -- do not leave the ↵Judd Vinet2006-07-14
| | | | DB in an inconsistent state
* first stage of i18n stuff from VMiklosJudd Vinet2006-05-15
|
* added a NOSCRIPLET flag to transactions (patch from VMiklos ↵Aurelien Foret2006-03-07
| | | | <vmiklos@frugalware.org>)
* code cleanupAurelien Foret2006-03-02
|
* 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
* reworked logsAurelien Foret2006-02-12
|
* code cleanupAurelien Foret2006-02-05
|
* more code cleanup yetAurelien Foret2006-01-18
|
* - code cleanupAurelien Foret2006-01-17
| | | | - log improvements
* more code cleanupAurelien Foret2006-01-16
|
* pulled out conflict checkings from checkdeps() in its own function: ↵Aurelien Foret2006-01-15
| | | | checkconflicts()
* removed a restriction: the data parameter of XXX_prepare functions can be NULLAurelien Foret2006-01-07
|
* removed ORE tags (after tests, no real performance increase by implementing ↵Aurelien Foret2006-01-06
| | | | them)
* - started to rename list_XXX calls to _alpm_list_XXXAurelien Foret2006-01-05
| | | | - fixed 2 compilation warnings
* tweaked a log (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret2006-01-05
|
* patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet2006-01-02
|