summaryrefslogtreecommitdiffstats
path: root/src/pacman/sync.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-27* Fix NEWS typo. Oops.Dan McGee1-1/+1
* Updated Russian translation. Владимир Байраковский <4rayven@gmail.com> and Shild <sxp@bk.ru> * Removed a string from gettext that didn't need it.
2007-03-19James Rosten <seinfeld90@gmail.com>Aaron Griffin1-4/+2
* Two new pactest test cases * Fix some "required by" / "requires" output by unifying all "dependency types" to a single value (PM_DEP_TYPE_DEPEND)
2007-03-05This commit looks much more monumental than it is. Almost all just #includeDan McGee1-6/+6
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-6/+6
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-23* conflicts are returned with the full path, so prepending root is redundantAaron Griffin1-5/+3
2007-02-21* Slight message change for consistancy- add a ' ' (space char) at theDan McGee1-1/+3
beginning to match the way other repos are displayed. * TODO updates.
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-16* Bugfix for FS#6427: Allow -Si to use "repository/package" syntaxAaron Griffin1-12/+54
* Also don't stop searching when one package is not found (output and continue)
2007-02-14* Updated Italian translationDan McGee1-1/+1
* 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-12* Updated the README fileAaron Griffin1-5/+1
* Removed the handle->needles param. It's not needed not that alpm_list_t is public
2007-02-04* unified the progress bars (fill_progress function)Aaron Griffin1-53/+1
* 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-03Add newlines to error messagesDan McGee1-2/+2
2007-02-01* Tried to clean up newline display a bit in the frontend.Dan McGee1-9/+5
* 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-31Removed the extra newline based on general opinionAaron Griffin1-1/+1
2007-01-31Debug logging changes:Aaron Griffin1-2/+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-30Fixing line spacings of download/install size messages.Dan McGee1-1/+1
2007-01-30Well that silly memory clobber was plain old "uninitialized data" - fixedAaron Griffin1-1/+1
2007-01-30* Remove -fno-strict-aliasing as it is now unnecessary to compile.Dan McGee1-1/+0
* Fix up add.c a bit better than it was in regards to FS #3492. * Optimized the sqrt call in dependency cycle checking to a single call. * Removal of an outdated comment.
2007-01-30Discussed on IRC for a bit, this makes the following changes for clarity:Dan McGee1-2/+2
* alpm_list_is_in --> alpm_list_find * alpm_list_is_strin --> alpm_list_find_str * Flip parameters of both functions to be inline with rest of alpm_list. First commit, woohoo.
2007-01-24* Shuffled some of the alpm_list free funtions - still not perfect, but betterAaron Griffin1-6/+5
* 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-24This mainly deals with code clarity- removing currently unneededAaron Griffin1-5/+14
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-23Removed some debugging cruft left in in the last commitAaron Griffin1-2/+0
2007-01-23* Added some calloc calls to replace the malloc-then-set-to-zero functionalityAaron Griffin1-7/+16
* Fixed -Ss output so as not to call alpm_list_getdata with a NULl list * Added a NULL check in alpm_list_getdata * Fixed alpm_list_add_sorted to properly handle a new / beginning insertions
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin1-153/+133
* 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-0/+6
* 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
2007-01-17Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-0/+45
* fix for -Qii regression * package.c cleanup * some refactoring changes Moved split_pkgname as per Dan's suggestion
2007-01-03* cosmetic: newline after "local database is up to date"Aaron Griffin1-1/+1
2007-01-03* bug fix FS#6100 - fix --print-uris outputAaron Griffin1-36/+36
2006-12-29* Removed latest fix from TODO.autoconfAaron Griffin1-23/+23
* Attempted fix for FS#6100 - "-Spd foo" failure * Beginning of refactoring from Dan McGee <dpmcgee@gmail.com>
2006-12-05Changed upgrade message to use the term "installation" to make the meaning moreAaron Griffin1-1/+2
clear
2006-12-05Changed "Total Uncompressed Size" to "Total Installed Size"Aaron Griffin1-1/+1
2006-12-01* Cosmetic changes and typo fixesAaron Griffin1-4/+4
* IgnorePkg and --ignore work again * Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
2006-11-27* cosmetic: double space in "full system upgrade"Aaron Griffin1-1/+1
2006-11-23* Move sync *after* transaction init (lock file). We don't want to stomp on theAaron Griffin1-10/+11
databases while another instance of pacman /could/ be reading them.
2006-11-22* Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)Aaron Griffin1-21/+21
* Modified some dependancy checking * Changed "performing local database upgrade" message to be more clear * Change 'usize' to 'isize' in database files * Scriptlet output is now sent to pacman's log file * Limited some debugging output to be more clear
2006-11-22* Fixed a double free which happened in 2 cases in --syncAaron Griffin1-2/+0
2006-11-20* repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin1-62/+60
(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-16* makepkg.conf.in variable changes (missed the checkin)Aaron Griffin1-2/+2
* Better error reporting when unpacking an archive fails * Fixed -Sc and -Scc cache dir opening/reading
2006-11-14* has_archname additionsAaron Griffin1-1/+1
* additional newline for search output, as suggested on the forums
2006-11-14* Numerous mini valgrind fixes.Aaron Griffin1-11/+13
* Addition of hacky architecture check in the _splitname function * Removal of libfetch from the archlinux proper - it has been renamed to libdownload and can be found at http://phraktured.net/libdownload * Merge of _some_ of the Frugalware makepkg change - this may still be incomplete * Removal of libftp from cvs proper * PKGBUILD manpage now says 'PKGBUILD' instead of FrugalBuild (he he)
2006-11-03* Modified some error output and loggingAaron Griffin1-1/+3
* 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-2/+8
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-7/+12
* 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-19From VMiklos <vmiklos@frugalware.org>Aaron Griffin1-1/+1
* alpm_db_update() fix up the level parameter till now when it was "1", it meant false, which was not in sync with the C logic :)
2006-10-15Added alpm function docs alongAaron Griffin1-2/+4
pacman.c : Removed link to frugalware wiki sync.c : do not display Uncompressed size if 0 (archlinux has no USIZE)
2006-10-15Corrected documentation compilation - succeeds nowAaron Griffin1-4/+5
2006-10-15Merged frugalware changes. Added a few other minor things too, but there's alotAaron Griffin1-190/+105
to list. The diff should show you 8)
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-63/+64
2006-03-13- removed pacman.hAurelien Foret1-4/+0
- removed unuseful extern declarations - set pacman.c internal functions as static
2006-02-15moved the .lastupdate support from libalpm to pacmanAurelien Foret1-9/+5