summaryrefslogtreecommitdiffstats
path: root/src/pacman/trans.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-06* Fix FS #6534- unclear IgnorePkg message. Sorry translators, had to updateDan McGee1-1/+2
a string! You messages may or may not have changed much.
2007-03-05This commit looks much more monumental than it is. Almost all just #includeDan McGee1-1/+3
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-03-03* A little more hacking with wchar_t output, but nothing really changed inDan McGee1-7/+17
it. Eventually we'll make progress. * Rewrote the _alpm_splitdep function to behave more like all our other function calls. Use heap instead of stack allocation for the depend struct, so now it needs to be freed by the caller.
2007-03-03Big commit this time:Aaron Griffin1-2/+2
* 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
2007-02-23* Modified the handling and output w.r.t. IgnorePkg entries. -Sy always ignoresAaron Griffin1-1/+5
these packages, but -S explicitly asks for confirmation.
2007-02-22* Forgot the second printf in the last commitAaron Griffin1-1/+1
2007-02-22* Using positional params (POSIX compliant, not C standard) for printfs thatAaron Griffin1-2/+2
require a lot of duplicates - this may or may not be a good idea with regards to portability, but we'll see
2007-02-17* A whole mess of backup changesAaron Griffin1-0/+5
- 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-14* Updated Italian translationDan McGee1-8/+10
* Updated pot translation templates * Located culprit of progress bar moving when unicode characters are used, added a TODO note about it * Removed '(target)' string from the sync.c error message, just like we did from add.c yesterday * Updated my TODO
2007-02-14* strlen -> mbstowcs (multibyte str to wide char str) conversion where weDan McGee1-1/+1
want the actual number of characters, not the number of bytes. * Added a TODO to take care of later in scriptlet processing.
2007-02-09* Cleaned up direct pm_fprintf usage (move to MSG/ERR macros for now)Aaron Griffin1-24/+5
* Moved some stderr output to stdout * Remove "RETRIEVE_LOCAL" trans event as libdownload handles local files
2007-02-08* Hopefully fixed the download progres bar for real. We should no longerDan McGee1-2/+2
have issues with crazy speeds being displayed. * Minor string updates to remove unnecessary 1-off translations.
2007-02-04* unified the progress bars (fill_progress function)Aaron Griffin1-60/+22
* fixed progress output (needs an fflush to move cursor properly) * broke display_targets function out, to display a list of syncpkgs in preparation for a -Qu option * added get_update_time function to deal with progress functions that shouldn't update too fast due to output redraw speeds
2007-01-31* Refactored some functions to clean up variable declaration.Dan McGee1-91/+102
* Reduced magic number usage by fill_progress function (new). * Some switch indent fixing. * Remove use of log10 call.
2007-01-26* copy and paste error, "resolving deps" -> "cleaning up"Aaron Griffin1-1/+1
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-01-24This mainly deals with code clarity- removing currently unneededAaron Griffin1-36/+42
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-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-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-1/+1
* 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-29* Fix a missing slash separator in printed uriAaron Griffin1-1/+1
2006-12-22Modified front end output routines to accept a "padding' setting, which pads anyAaron Griffin1-0/+6
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-22Removed global maxcols - it is looked up on the fly now, so the progress bar isAaron Griffin1-1/+2
resized. Also used ioctl in place of the COLUMNS env variable
2006-11-20* repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin1-20/+20
(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-11-02* Fixed some alpm_get_option calls (long params were used for C99 compliance,Aaron Griffin1-20/+8
but were used in error) * Cleaned up some output newlines * Added "local database is up to date" when no packages are upgraded
2006-11-01Added a newline upong progress completion - this was accidentally left out ↵Aaron Griffin1-0/+4
causing the second progress bar to overwrite the first
2006-10-31Numerous changes:Aaron Griffin1-5/+38
* 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-16Applied Frugalware patch from Christian Hamar alias krix <krics@linuxforum.hu>Aaron Griffin1-9/+39
for file-conflict progress bar Also did some CVS cleanup, removing some of the autogenerated files that shouldn't have been there
2006-10-15Merged frugalware changes. Added a few other minor things too, but there's alotAaron Griffin1-33/+224
to list. The diff should show you 8)
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-19/+20
2006-02-22fixed indentationAurelien Foret1-4/+4
2006-02-22fixed outputs when downloadonly flag is set (patch from VMiklos ↵Aurelien Foret1-4/+16
<vmiklos@frugalware.org>)
2006-01-07code cleanupAurelien Foret1-2/+2
2006-01-07code cleanup (mainly removed line spaces at the beginning of lines by ↵Aurelien Foret1-17/+17
tabulations)
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet1-1/+1
2006-01-02code cleanupAurelien Foret1-2/+2
2005-12-26applied first try at sync conflict handling (VMiklos) plus a couple changesJudd Vinet1-0/+7
2005-10-21improved the Replace question format a bitJudd Vinet1-3/+3
2005-10-10added a missing header file declarationAurelien Foret1-0/+1
2005-10-09added conversation callback support for transactionsJudd Vinet1-1/+34
2005-05-09fixed cb_trans() prototypeAurelien Foret1-1/+1
2005-04-17fixed a log messageAurelien Foret1-1/+1
2005-04-13- updated sync featureAurelien Foret1-0/+4
- added 2 new transaction events
2005-04-02sync with changes in alpm.h and new RESOLVEDEPS eventAurelien Foret1-9/+14
2005-03-19Relocated log and transaction stuffs from pacman.c to log.c and trans.cAurelien Foret1-0/+87