summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2007-02-12* Updated the README fileAaron Griffin2-9/+2
* Removed the handle->needles param. It's not needed not that alpm_list_t is public
2007-02-12Added 'testpkg' binary to test for validity of a package:Aaron Griffin2-2/+74
testpkg <package file>, returns 0 on success, 1 on failure failure will also output error messages to stdout
2007-02-10Cleaned up some more outputAaron Griffin4-15/+19
* Questions no longer start with "error:" * downloaded size is output as a float now
2007-02-09* Fix compile errors/warnings.Dan McGee2-3/+0
* Update .cvsignore files a bit.
2007-02-09* I made "alpm_versioncmp" public a while back, without noticing this was ↵Aaron Griffin1-1/+1
already done (alpm_pkg_vercmp). I dropped this change, making versioncmp "private" again. (alpm_versioncmp -> _alpm_versioncmp, hidden symbol) * Make alpm_get_upgrades use the same version check that -Su and -S use.
2007-02-09* Remove "error: " text from ERR() call since it is appended by ERR anyway.Dan McGee1-3/+3
2007-02-09* Cleaned up direct pm_fprintf usage (move to MSG/ERR macros for now)Aaron Griffin3-28/+12
* 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 McGee3-70/+77
have issues with crazy speeds being displayed. * Minor string updates to remove unnecessary 1-off translations.
2007-02-08* Oops. Added some files to make "make update-po" work.Dan McGee2-0/+21
2007-02-08* Nice overhaul of manpages. It is at least a start.Dan McGee1-2/+2
* Alphabetized options in pacman usage.
2007-02-08Fix newlines for real, and add a missing _() gettext wrapper.Dan McGee1-2/+3
2007-02-07* Fix total transfered size on download barAaron Griffin2-46/+35
* Fix -Qm segfault * Minor query cleanup
2007-02-07I broke the progress bars earlier. Put that back to normal.Aaron Griffin1-1/+1
2007-02-07Oops. Actuall add two new translation templates as requested on the ML-Dan McGee2-0/+2036
'it' and 'pt_BR'.
2007-02-07* Update of all the *.po files and *.pot template files.Dan McGee7-1948/+1951
* Makefile targets to rebuild po files now work - use 'make update-po' in the po directories. * Added two new translation templates as requested on the ML- 'it' and 'pt_BR'. This commit might be a bit big for the mailing list to like on the commit message. :)
2007-02-06* Makepkg updates, and small bugfix on man page compression.Dan McGee2-3/+2
* Change libtool default to makepkg2 behavior. * Other small changes.
2007-02-06Minor experimental changes to the download progress bar:Aaron Griffin1-12/+38
* change to Mb and Gb for both total size and transfer rate if needed * round up to 1 second for downloads that were between 1s and 0.5s This function needs some serious looking at, as it's probably not 64bit safe (thus the "wrong calculation" problem on the list).
2007-02-04Added the --upgrades option for -Qu (--query --upgrades)Aaron Griffin1-0/+1
2007-02-04Implemented a crappy version of -Qu (query upgrades). This simply outputs theAaron Griffin5-4/+18
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* Added archive verification when loading package metadata for -u and -AAaron Griffin2-4/+4
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-02-04* unified the progress bars (fill_progress function)Aaron Griffin6-181/+218
* 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 McGee2-4/+4
2007-02-01* Tried to clean up newline display a bit in the frontend.Dan McGee5-41/+12
* 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-02-01-Ql needs the 'root' prepended to each fileAaron Griffin1-1/+2
2007-01-31Removed the extra newline based on general opinionAaron Griffin1-1/+1
2007-01-31* Make -Qo work on multiple files againAaron Griffin1-9/+7
* no real sense in query_fileowner returning an int
2007-01-31Debug logging changes:Aaron Griffin9-55/+52
* 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-31More uninitialized stuff... I believe these were removed at some point. ShouldAaron Griffin2-2/+2
be fixed.
2007-01-31* Refactored some functions to clean up variable declaration.Dan McGee2-93/+104
* Reduced magic number usage by fill_progress function (new). * Some switch indent fixing. * Remove use of log10 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-30K. Piche <kpiche@rogers.com>Aaron Griffin1-2/+2
* gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions
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-30* Modified info query so it doesn't show more than available when querying aDan McGee1-7/+14
package file.
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-29* Fix building outside $(srcdir).Jürgen Hötzel2-3/+3
* Removed ./gen-mirrorlist.sh invocation from configure script: Mirror-files are generated by make, not configure.
2007-01-26Missed that 8)Aaron Griffin1-1/+0
2007-01-26Dan McGee <dpmcgee@gmail.com>Aaron Griffin6-19/+20
* 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-26* copy and paste error, "resolving deps" -> "cleaning up"Aaron Griffin1-1/+1
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-01-24Cleanup 'neednl' usage - make it staticAaron Griffin3-17/+4
2007-01-24* Shuffled some of the alpm_list free funtions - still not perfect, but betterAaron Griffin6-17/+25
* 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 Griffin5-50/+83
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-22* Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-3/+3
Newlines were included in both setting the string variable and in the printf, remove the extra ones.
2007-01-22Removed list.hAaron Griffin1-1/+1
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin25-604/+334
* 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 Griffin2-3/+1
* remove getcols call in main()
2007-01-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin9-55/+58
* 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 Griffin4-144/+170
* fix for -Qii regression * package.c cleanup * some refactoring changes Moved split_pkgname as per Dan's suggestion