summaryrefslogtreecommitdiff
path: root/src/pacman/log.c
Commit message (Collapse)AuthorAge
* * Bugfix FS#6422 - spacing for warning output. Due to the fact that we fixedAaron Griffin2007-02-16
| | | | | | | 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
* Cleaned up some more outputAaron Griffin2007-02-10
| | | | | * Questions no longer start with "error:" * downloaded size is output as a float now
* * Cleaned up direct pm_fprintf usage (move to MSG/ERR macros for now)Aaron Griffin2007-02-09
| | | | | * Moved some stderr output to stdout * Remove "RETRIEVE_LOCAL" trans event as libdownload handles local files
* * Added archive verification when loading package metadata for -u and -AAaron Griffin2007-02-04
| | | | | | | 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
* 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.
* Cleanup 'neednl' usage - make it staticAaron Griffin2007-01-24
|
* * Shuffled some of the alpm_list free funtions - still not perfect, but betterAaron Griffin2007-01-24
| | | | | | | | | | * 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
* 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
* * remove static neednl - no accessor functions (yet)Aaron Griffin2007-01-18
| | | | * remove getcols call in main()
* Dan McGee <dpmcgee@gmail.com>Aaron Griffin2007-01-18
| | | | | | | | | | | | | | * 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
* Modified front end output routines to accept a "padding' setting, which pads anyAaron Griffin2006-12-22
| | | | | | 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.
* * Modified some error output and loggingAaron Griffin2006-11-03
| | | | | | * 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)
* * Fixed some alpm_get_option calls (long params were used for C99 compliance,Aaron Griffin2006-11-02
| | | | | | but were used in error) * Cleaned up some output newlines * Added "local database is up to date" when no packages are upgraded
* Numerous changes:Aaron Griffin2006-10-31
| | | | | | | * 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)
* 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. Added a few other minor things too, but there's alotAaron Griffin2006-10-15
| | | | to list. The diff should show you 8)
* patch: check strlen of str, NOT msg, which is always trueJudd Vinet2006-05-15
|
* first stage of i18n stuff from VMiklosJudd Vinet2006-05-15
|
* fixed a compilation warningAurelien Foret2006-02-15
|
* fixed a compilation warningAurelien Foret2006-02-14
|
* - moved yesno() from util.c to log.cAurelien Foret2006-02-04
| | | | - fixed a missing line feed in yesno when printing the message
* fixed vprint implementation (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret2006-02-01
|
* added line feeds when needed (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret2006-02-01
|
* patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet2006-01-02
|
* - reworked verbose levelsAurelien Foret2006-01-01
| | | | - fixed the handling of command line errors when no operation is specified
* renamed error titles from XXX to xxxAurelien Foret2006-01-01
|
* renamed pmconfig_t to config_tAurelien Foret2005-10-29
|
* added pmconfig_t structure to hold all the configurationAurelien Foret2005-10-28
| | | | (patch from VMiklos <vmiklos@frugalware.org>)
* Added support for .lastupdate files (from pacman 2.9.1)Aurelien Foret2005-03-20
|
* Relocated log and transaction stuffs from pacman.c to log.c and trans.cAurelien Foret2005-03-19