summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-02-14* Fixed _alpm_pkg_compare_versions so that it does not output warnings if ↵Aaron Griffin1-10/+13
versions match. (reported by Travis Willard)
2007-02-14* strlen -> mbstowcs (multibyte str to wide char str) conversion where weDan McGee2-5/+14
want the actual number of characters, not the number of bytes. * Added a TODO to take care of later in scriptlet processing.
2007-02-14* Removed needless checking of package infolevel- leave it to theDan McGee2-25/+8
alpm_pkg_get functions to do this.
2007-02-14* Updated a too-verbose message in pacman/add.c. (shouldn't be an issue withiDan McGee1-102/+123
translations, but may want to update at some point) * More libalpm/conflict.c changes. Optimized more, hopefully won't need too much more than this.
2007-02-14Slightly optimized to remove duplicate strcmp operation.Dan McGee1-7/+14
2007-02-13Adding official translations. Thanks a lot, guys!Dan McGee2-670/+615
* German Translation from: Pierre Schmitz <pierre@archlinux.de> Niclas Pfeifer <macwolf@archlinux.de> * Italian Translation from: Giovanni 'voidnull' Scafora <linuxmania@gmail.com> Alessio 'mOLOk' Bolognino <themolok@gmail.com> Lorenzo '^zanDarK' Masini <lorenxo86@gmail.com>
2007-02-13* Refactored conflict checking within packages. Profiling from Dan showed anAaron Griffin12-1135/+1323
unbelievable amount of strcmp() calls (25 million) due to the list searching. This has been reimplemented with a set-intersection scheme, due to the fact that file lists are always ordered. - NEEDS TESTING * Minor clean up, "globalized" the str_cmp helper to match the alpm comparison signature, so we can use it elsewhere.
2007-02-13Removed desc_localized for the time being. We don't have localizedAaron Griffin4-25/+41
descriptions, nor do we actually build them with the newest makepkg. The actual implementation in here seems like it could be done better, and it soaks a large amount of CPU time according to profilers.
2007-02-12* Fixed an i18n bug; length of description string was hardcoded previously;Dan McGee1-216/+244
now uses an strlen call. * Updates of the *.pot files.
2007-02-12Wasn't clearing out the 'pkgname' variable, which was causing goofy outputAaron Griffin1-3/+6
issues - silly me. Also removed config.rpath from CVS
2007-02-12* Updated the README fileAaron Griffin4-17/+3
* Removed the handle->needles param. It's not needed not that alpm_list_t is public
2007-02-12This should be an ERROR, not a WARNINGAaron Griffin1-1/+1
2007-02-10*** empty log message ***Aaron Griffin1-0/+8
2007-02-10* Package file parsing - fixed size and isize - isize is the "size" variableAaron Griffin2-31/+36
from the PKGINFO, and size is the stat() size of the archive * Removed the useless 'output' param from package.c:parse_descfile * Installation progress - Call progress callback once at 0% for initialization - 'needdisp' was useless - alpm_list_count is called an excessive amount in these nested loops. Now we only call it once per iteration - Use the compressed sizes for PROGRESS calcs as uncompressed (isize) is not exact (it is missing metadata sizes), and thus produces > 100% numbers
2007-02-10* 'add' percentages now cap at 100% (see the comment)Aaron Griffin3-10/+32
* downloaded packages now pass ONLY the package name to the callback
2007-02-09* Fix compile errors/warnings.Dan McGee4-5/+3
* Update .cvsignore files a bit.
2007-02-09* I made "alpm_versioncmp" public a while back, without noticing this was ↵Aaron Griffin6-29/+10
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 "RETRIEVE_LOCAL" trans event as libdownload handles local filesAaron Griffin1-1/+0
2007-02-09* Fixed some missing error values in strerrorAaron Griffin4-83/+108
* Cleanup up some error enum values * Revamped the 'pmserver_t' functionality. Less allocation, removed a param and cleaned up some duplicate URL parsing
2007-02-08Attempt to NOT remove packages on filesystem errors (like a read-onlyAaron Griffin3-27/+71
filesystem). See FS#5887
2007-02-08* Oops. Added some files to make "make update-po" work.Dan McGee2-0/+21
2007-02-07Spruced up the TODOs a bit, got rid of some of them since a lot of it wasDan McGee2-16/+13
duplicate anyway. Also removed the last of the ORE tags and replaced them with TODOs.
2007-02-07Copy/pasta error in alpm_get_upgrades that caused a segfaultAaron Griffin1-1/+1
2007-02-07Only honor 'force' if versions are NOT identicalAaron Griffin1-6/+4
2007-02-07Cleanup and more debug info for alpm_pkg_compare_versionsAaron Griffin3-13/+20
2007-02-07Oops. Actuall add two new translation templates as requested on the ML-Dan McGee2-0/+2700
'it' and 'pt_BR'.
2007-02-07* Update of all the *.po files and *.pot template files.Dan McGee7-2020/+2478
* 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 McGee1-1/+1
* Change libtool default to makepkg2 behavior. * Other small changes.
2007-02-06Cleaning up mistakes. :PDan McGee1-1/+1
2007-02-06Attempt #2 at -S/-Su unification: verify that the 'force' option has been ↵Aaron Griffin2-1/+6
read before comparing versions
2007-02-06Copy-pasta errors. 8)Aaron Griffin1-8/+8
2007-02-06Attempt to unify the -S and -Su version comparissons for when a package is newerAaron Griffin2-31/+35
See FS#5388
2007-02-04Implemented a crappy version of -Qu (query upgrades). This simply outputs theAaron Griffin5-14/+170
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 Griffin1-16/+27
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-01* Minor output fix (move colon so it's not part of the URL)Aaron Griffin2-1/+8
* Added ldconfig on --sync operations too
2007-02-01Loading package data from a file was ALWAYS generating the filelist, instead ofAaron Griffin1-17/+22
using the in-package one. This is now fixed, and an autogenerated one is used as a last resort. This fixes the bug where /.CHANGELOG showed up in -Ql.
2007-02-01Cleaned up some of the metadata controlAaron Griffin1-17/+9
2007-02-01* !strcmp reads funny (as "not string compare" - switch those to == 0, which hasAaron Griffin1-3/+6
a positive connotation. * Added a nice TODO
2007-01-31* Forgot the int->enum header checkinAaron Griffin1-1/+1
* Removed the dep-sorting TODO item - switch the sorting to a topological sort later (I'll let Dan do the CS stuff, heh)
2007-01-31Switched an int to an enumAaron Griffin1-1/+1
2007-01-31Fix corrupt DB entry handling when loading package entries.Aaron Griffin2-55/+61
* scan loops no longer abort on corrupt entries * reloading a cache package (and discovering it corrupt) no longer prints 2 messages and uses the pre-build "remove from package cache" function NOTE: The TODOs in there are important for later w.r.t. cleaning up corrupt DB entries but there are some logical complexities with doing so, so I'm holding off for now.
2007-01-31Debug logging changes:Aaron Griffin10-85/+75
* 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-31slight line spacing/indent updatesDan McGee3-3/+3
2007-01-30K. Piche <kevin.piche@cgi.com>Aaron Griffin21-0/+302
* ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
2007-01-30K. Piche <kpiche@rogers.com>Aaron Griffin16-98/+104
* 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 McGee4-19/+34
* 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 McGee13-31/+34
* 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ötzel1-1/+1
* Removed ./gen-mirrorlist.sh invocation from configure script: Mirror-files are generated by make, not configure.
2007-01-26Dan McGee <dpmcgee@gmail.com>Aaron Griffin3-5/+5
* 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* Fix FS #3107- Use ISO date styleAaron Griffin1-4/+5
* Fix FS #5409- document that pacman.conf repo ordering is important Signed-off-by: Dan McGee <dpmcgee@gmail.com>