summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-04* Fixed a whole mess of extra '/' pathing issues when a different root isAaron Griffin1-23/+34
specified * Use db->path when appropriate * Commented out the FAKEROOT checks in libalpm. This should never ever be done. TODO test this quite a bit, as this will never cause the transactions to fail if RW operations are requested... right now it is totally up to the front end to decide when to fail * Use realpath() to canonicalize the root path when specified, so _alpm_makepath() doesn't freak out * Fixed some output/indent of MDFile and SHAFile algorithms * More efficient sprintf() usage in MDFile/SHAFile * Added real error output to _alpm_makepath
2007-03-04* handle changes: callbacks should check handle first, as there's a fewAaron Griffin1-2/+2
occasions where some alpm stuff could be used without initializing the library (vercmp is one). TODO make these functions (handle accessors) better by returning "library not initialized" instead of failing. * Removed NoUpgrade lines from pacman.conf - we need to test this! * Re-corrected the lib targets for src/util/* * make dist seems to have updated the po files
2007-02-21* Re-added a compare function for syncpkg's - it was removed without thinkingAaron Griffin1-24/+55
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 **
2007-02-12* Updated the README fileAaron Griffin1-11/+0
* Removed the handle->needles param. It's not needed not that alpm_list_t is public
2007-01-31Debug logging changes:Aaron Griffin1-0/+2
* 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/+4
* ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
2007-01-30K. Piche <kpiche@rogers.com>Aaron Griffin1-11/+11
* gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions
2007-01-24This mainly deals with code clarity- removing currently unneededAaron Griffin1-8/+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>
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-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-1/+0
* 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
2006-12-05Corrected -Rsc operation - dependancy info was not being read from the DBAaron Griffin1-4/+4
2006-11-20* repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin1-230/+116
(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-10-31Numerous changes:Aaron Griffin1-4/+7
* 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-21More extern moving - keep extern decls in the headers makes for easier/betterAaron Griffin1-12/+1
reuse.
2006-10-15Merged frugalware changes (too many to list). Also added some config fileAaron Griffin1-4/+132
handling changes (support [sections] to carry over to included files - this helps with backwards compatibility with existing pacman config files)
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-13/+14
2006-03-02added a debug logAurelien Foret1-0/+1
2006-02-20the library must provide default values for main optionsAurelien Foret1-0/+3
2006-02-17prepend library function names with _alpm (helped with the patch from ↵Aurelien Foret1-3/+3
VMiklos <vmiklos@frugalware.org>) added log and event callbacks to sync_commit internal transactions
2006-01-21added a FAKEROOT define allowing to use pacman in a fakeroot enivronment ↵Aurelien Foret1-0/+6
(for tests purpose)
2006-01-07removed handle/uid checks (CYGWIN)Aurelien Foret1-0/+4
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet1-1/+1
2005-12-28Fixed some memory leaks (patch from Essien Ita Essien <essiene@datavibe.net>)Aurelien Foret1-0/+2
2005-10-10added PM_OPT_CACHEDIR library optionAurelien Foret1-0/+8
2005-10-07Merging in recent fixes/additions from 2.9.7Judd Vinet1-0/+10
2005-10-05Applied reworked patch from VMiklos (vmiklos@frugalware.org)Aurelien Foret1-0/+1
Close the lock file descriptor upon handle release
2005-04-16reworked handle structure initializationAurelien Foret1-14/+2
2005-03-28reworked dbpath handling to make it possible to use databases stored at ↵Aurelien Foret1-20/+3
different locations at the same time
2005-03-18Fixed some typo...Aurelien Foret1-2/+2
2005-03-18Removed unuseful getuid() callsAurelien Foret1-2/+2
2005-03-16Renamed PM_RET_ERR to RET_ERR (no need for a PM_ prefix for internalAurelien Foret1-12/+12
defines).
2005-03-16New ORE tagAurelien Foret1-0/+3
2005-03-16Removed the "__" prefix from __pm_logcb and __pm_logmaskAurelien Foret1-6/+6
Not needed for library internal data
2005-03-16Renamed PACXXX defines to PM_XXXAurelien Foret1-1/+1
2005-03-15Initial revisionJudd Vinet1-0/+229