summaryrefslogtreecommitdiff
path: root/lib/libalpm
Commit message (Collapse)AuthorAge
* This should be an ERROR, not a WARNINGAaron Griffin2007-02-12
|
* *** empty log message ***Aaron Griffin2007-02-10
|
* * Package file parsing - fixed size and isize - isize is the "size" variableAaron Griffin2007-02-10
| | | | | | | | | | | | 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
* * 'add' percentages now cap at 100% (see the comment)Aaron Griffin2007-02-10
| | | | * downloaded packages now pass ONLY the package name to the callback
* * Fix compile errors/warnings.Dan McGee2007-02-09
| | | | * Update .cvsignore files a bit.
* * I made "alpm_versioncmp" public a while back, without noticing this was ↵Aaron Griffin2007-02-09
| | | | | | 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.
* * Remove "RETRIEVE_LOCAL" trans event as libdownload handles local filesAaron Griffin2007-02-09
|
* * Fixed some missing error values in strerrorAaron Griffin2007-02-09
| | | | | | * Cleanup up some error enum values * Revamped the 'pmserver_t' functionality. Less allocation, removed a param and cleaned up some duplicate URL parsing
* Attempt to NOT remove packages on filesystem errors (like a read-onlyAaron Griffin2007-02-08
| | | | filesystem). See FS#5887
* * Oops. Added some files to make "make update-po" work.Dan McGee2007-02-08
|
* Spruced up the TODOs a bit, got rid of some of them since a lot of it wasDan McGee2007-02-07
| | | | | duplicate anyway. Also removed the last of the ORE tags and replaced them with TODOs.
* Copy/pasta error in alpm_get_upgrades that caused a segfaultAaron Griffin2007-02-07
|
* Only honor 'force' if versions are NOT identicalAaron Griffin2007-02-07
|
* Cleanup and more debug info for alpm_pkg_compare_versionsAaron Griffin2007-02-07
|
* Oops. Actuall add two new translation templates as requested on the ML-Dan McGee2007-02-07
| | | | 'it' and 'pt_BR'.
* * Update of all the *.po files and *.pot template files.Dan McGee2007-02-07
| | | | | | | | | | * 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. :)
* * Makepkg updates, and small bugfix on man page compression.Dan McGee2007-02-06
| | | | | * Change libtool default to makepkg2 behavior. * Other small changes.
* Cleaning up mistakes. :PDan McGee2007-02-06
|
* Attempt #2 at -S/-Su unification: verify that the 'force' option has been ↵Aaron Griffin2007-02-06
| | | | read before comparing versions
* Copy-pasta errors. 8)Aaron Griffin2007-02-06
|
* Attempt to unify the -S and -Su version comparissons for when a package is newerAaron Griffin2007-02-06
| | | | See FS#5388
* Implemented a crappy version of -Qu (query upgrades). This simply outputs theAaron Griffin2007-02-04
| | | | | | | | 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();
* * Added archive verification when loading package metadata for -u and -AAaron Griffin2007-02-04
| | | | | | | 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
* * Minor output fix (move colon so it's not part of the URL)Aaron Griffin2007-02-01
| | | | * Added ldconfig on --sync operations too
* Loading package data from a file was ALWAYS generating the filelist, instead ofAaron Griffin2007-02-01
| | | | | | | 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.
* Cleaned up some of the metadata controlAaron Griffin2007-02-01
|
* * !strcmp reads funny (as "not string compare" - switch those to == 0, which hasAaron Griffin2007-02-01
| | | | | a positive connotation. * Added a nice TODO
* * Forgot the int->enum header checkinAaron Griffin2007-01-31
| | | | | * Removed the dep-sorting TODO item - switch the sorting to a topological sort later (I'll let Dan do the CS stuff, heh)
* Switched an int to an enumAaron Griffin2007-01-31
|
* Fix corrupt DB entry handling when loading package entries.Aaron Griffin2007-01-31
| | | | | | | | | | * 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.
* Debug logging changes:Aaron Griffin2007-01-31
| | | | | | | | | | | | | | | | * 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.
* slight line spacing/indent updatesDan McGee2007-01-31
|
* K. Piche <kevin.piche@cgi.com>Aaron Griffin2007-01-30
| | | | * ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
* K. Piche <kpiche@rogers.com>Aaron Griffin2007-01-30
| | | | | | | * gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions
* * Remove -fno-strict-aliasing as it is now unnecessary to compile.Dan McGee2007-01-30
| | | | | | * 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.
* Discussed on IRC for a bit, this makes the following changes for clarity:Dan McGee2007-01-30
| | | | | | | | * 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.
* * Fix building outside $(srcdir).Jürgen Hötzel2007-01-29
| | | | | * Removed ./gen-mirrorlist.sh invocation from configure script: Mirror-files are generated by make, not configure.
* Dan McGee <dpmcgee@gmail.com>Aaron Griffin2007-01-26
| | | | | | * 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
* * Fix FS #3107- Use ISO date styleAaron Griffin2007-01-26
| | | | | | * Fix FS #5409- document that pacman.conf repo ordering is important Signed-off-by: Dan McGee <dpmcgee@gmail.com>
* * Shuffled some of the alpm_list free funtions - still not perfect, but betterAaron Griffin2007-01-24
| | | | | | | | | | * 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
* This mainly deals with code clarity- removing currently unneededAaron Griffin2007-01-24
| | | | | | | | | | 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>
* James Rosten <seinfeld90@gmail.com>Aaron Griffin2007-01-23
| | | | * attempt to unlink file AFTER moving to .pacsave always fails
* * Added some calloc calls to replace the malloc-then-set-to-zero functionalityAaron Griffin2007-01-23
| | | | | | * 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
* * Added a check for .FILELIST for package validity in addition to .PKGINFOAaron Griffin2007-01-22
|
* Introduced an infinite loop during the pmlist -> alpm_list transition, whoopsAaron Griffin2007-01-22
|
* Moved some decls to make the "pkg_invalid" patch compile again.Aaron Griffin2007-01-19
|
* Whoops. There's a 0 where there should be a 1.Aaron Griffin2007-01-19
|
* Johannes Weiner <hannes@saeurebad.de>Aaron Griffin2007-01-19
| | | | * package cleanup (pkg_invalid) refactoring
* Johannes Weiner <hannes@saeurebad.de>Aaron Griffin2007-01-19
| | | | | * use calloc to zero-out new packages (far more ideal) * use memcpy to copy primatives when copying package structures
* Preliminary checkin for alpm_list conversionAaron Griffin2007-01-19
| | | | | | | | | * 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