summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-05This commit looks much more monumental than it is. Almost all just #includeDan McGee1-2/+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-02-26* pacman hidden arguments: removed -Y and -D. -T is the only hidden arg now, toAaron Griffin1-2/+7
be used in place of -Y. Also, -D was rather silly, as it does mostly what -S does. * Cleaned up pacman_deptest - removed the goofy faketarget stuff (NEEDS testing still) * libalpm function renames
2007-02-10Cleaned up some more outputAaron Griffin1-1/+3
* Questions no longer start with "error:" * downloaded size is output as a float now
2007-02-08* Hopefully fixed the download progres bar for real. We should no longerDan McGee1-32/+39
have issues with crazy speeds being displayed. * Minor string updates to remove unnecessary 1-off translations.
2007-02-04Implemented a crappy version of -Qu (query upgrades). This simply outputs theAaron Griffin1-2/+2
packages to be upgraded in a -Su operation. Much of the code is duplicated from sync.c. TODO: move the implementation to upgrades.c, and reimplement the sync_sysupgrade function in terms of this: trans->packages = alpm_get_upgrades();
2007-02-04* unified the progress bars (fill_progress function)Aaron Griffin1-0/+162
* 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-02-01* Tried to clean up newline display a bit in the frontend.Dan McGee1-29/+3
* Removed useless buildstring function from util.h; replaced all calls of it with list_display. * Made list_display output 2 spaces instead of 1 between each item.
2007-01-26Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-1/+1
* Lots of code cleanup, and type fixes * Make 'makeworld' a bit more in-line with the other stuff * Make -Si and -Qi operations appear the same
2007-01-24Cleanup 'neednl' usage - make it staticAaron Griffin1-1/+0
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin1-7/+38
* 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-19/+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
2006-12-28Column fix when stdout is redirected. Default to 80.Aaron Griffin1-0/+6
2006-11-22Removed global maxcols - it is looked up on the fly now, so the progress bar isAaron Griffin1-2/+20
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-3/+13
(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-15Merged frugalware changes. Added a few other minor things too, but there's alotAaron Griffin1-16/+6
to list. The diff should show you 8)
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-2/+3
2006-03-13- removed pacman.hAurelien Foret1-0/+26
- removed unuseful extern declarations - set pacman.c internal functions as static
2006-02-14better use ERR than fprintf for error messagesAurelien Foret1-1/+2
2006-02-04- moved yesno() from util.c to log.cAurelien Foret1-40/+0
- fixed a missing line feed in yesno when printing the message
2006-02-01added line feeds when needed (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret1-0/+2
2006-01-07code cleanupAurelien Foret1-5/+4
2006-01-07code cleanup (mainly removed line spaces at the beginning of lines by ↵Aurelien Foret1-1/+1
tabulations)
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet1-1/+1
2005-12-21VMiklos: --noconfirm fixJudd Vinet1-0/+8
2005-10-29fixed a compilation warningAurelien Foret1-1/+0
2005-10-18removed useless getenv() callsAurelien Foret1-8/+3
2005-10-08Merging in recent fixes/additions from 2.9.7Judd Vinet1-0/+16
2005-10-06Added a CYGWIN define to include header files required to build in a Cygwin ↵Aurelien Foret1-0/+3
environment
2005-03-16Code formattingAurelien Foret1-1/+1
2005-03-16- reworked sync_synctree() to make use of alpm_db_update()Aurelien Foret1-74/+1
- dropped unpack()
2005-03-15Initial revisionJudd Vinet1-0/+297