summaryrefslogtreecommitdiffstats
path: root/src/pacman/log.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-13* Resizing terminal while progress bars were displayed caused some weirdDan McGee1-1/+1
issues, this should fix it. Progress bars now go from displaying, to showing percent only, to not displaying at all. Changed unsigned -> signed to prevent wraparound errors in integer comparison.
2007-03-07* Bug fix for makepkg dependency testing. This requires that weAaron Griffin1-13/+0
expose alpm_splitdep and alpm_depcmp as public symbols * Removed a duplicate strtrim for question responses
2007-03-05This commit looks much more monumental than it is. Almost all just #includeDan McGee1-0/+2
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.
2007-02-17* A whole mess of backup changesAaron Griffin1-0/+4
- 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
2007-02-16* Bugfix FS#6422 - spacing for warning output. Due to the fact that we fixedAaron Griffin1-3/+3
MSG/ERR usage earlier, the trailing '\n's are no longer needed * Oddly enough - *ADDED* some '\n's to the sync_info errors (last commit) as the package info output does not use the pm_fprintf facility and thus does not honor our newline/no-newline setup
2007-02-10Cleaned up some more outputAaron Griffin1-1/+1
* Questions no longer start with "error:" * downloaded size is output as a float now
2007-02-09* Cleaned up direct pm_fprintf usage (move to MSG/ERR macros for now)Aaron Griffin1-1/+3
* Moved some stderr output to stdout * Remove "RETRIEVE_LOCAL" trans event as libdownload handles local files
2007-02-04* Added archive verification when loading package metadata for -u and -AAaron Griffin1-3/+3
operations (now aborts on a corrupt archive) * Fixed the pm_fprintf newline error that was plaguing us. It seems a line resetting 'neednl' was removed a while back (by me). This causes all the output errors we've been seeing
2007-01-31Debug logging changes:Aaron Griffin1-7/+4
* 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-24Cleanup 'neednl' usage - make it staticAaron Griffin1-1/+1
2007-01-24* Shuffled some of the alpm_list free funtions - still not perfect, but betterAaron Griffin1-2/+4
* Added alpm_list_remove_node for single list node removal * Proper error checking/output for failed db_read/db_write (missing files) * Invalid packages (missing files) are now removed from the package cache * -Qs and -Ss output now look the same * config.rpath causes errors on one machine I had, so I added it to CVS * Fixed a "clobbered memory" issue when installing groups - only the outer list should be free'd, not the contained data
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin1-1/+0
* 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-18* remove static neednl - no accessor functions (yet)Aaron Griffin1-1/+1
* remove getcols call in main()
2007-01-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-4/+4
* 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-22Modified front end output routines to accept a "padding' setting, which pads anyAaron Griffin1-3/+29
statement with ' ' until the size of the terminal. The rationale is that, when a log message is emitted during progress bar display, the terminal is artifacted. This prevents that messiness.
2006-11-03* Modified some error output and loggingAaron Griffin1-10/+15
* Changed the initial log mask (added PM_LOG_ERROR) * Fixed -Syu so it now works if any databases were downloaded (it was working like a -Su)
2006-11-02* Fixed some alpm_get_option calls (long params were used for C99 compliance,Aaron Griffin1-0/+3
but were used in error) * Cleaned up some output newlines * Added "local database is up to date" when no packages are upgraded
2006-10-31Numerous changes:Aaron Griffin1-1/+5
* Added 'ILoveCandy' support to all progress bars * Changed download callback with regards to libfetch libalpm changes * libfetch error output on failed sync * Misc others I may have forgot to name (check the diff, heh)
2006-10-20A handful of minor changes:Aaron Griffin1-1/+10
* 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. Added a few other minor things too, but there's alotAaron Griffin1-4/+5
to list. The diff should show you 8)
2006-05-15patch: check strlen of str, NOT msg, which is always trueJudd Vinet1-3/+5
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-8/+9
2006-02-15fixed a compilation warningAurelien Foret1-1/+1
2006-02-14fixed a compilation warningAurelien Foret1-0/+1
2006-02-04- moved yesno() from util.c to log.cAurelien Foret1-0/+40
- fixed a missing line feed in yesno when printing the message
2006-02-01fixed vprint implementation (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret1-8/+4
2006-02-01added line feeds when needed (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
2006-01-01- reworked verbose levelsAurelien Foret1-1/+1
- fixed the handling of command line errors when no operation is specified
2006-01-01renamed error titles from XXX to xxxAurelien Foret1-6/+6
2005-10-29renamed pmconfig_t to config_tAurelien Foret1-2/+2
2005-10-28added pmconfig_t structure to hold all the configurationAurelien Foret1-2/+4
(patch from VMiklos <vmiklos@frugalware.org>)
2005-03-20Added support for .lastupdate files (from pacman 2.9.1)Aurelien Foret1-1/+4
2005-03-19Relocated log and transaction stuffs from pacman.c to log.c and trans.cAurelien Foret1-0/+115