summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-01-19Johannes Weiner <hannes@saeurebad.de>Aaron Griffin1-15/+8
* package cleanup (pkg_invalid) refactoring
2007-01-19Johannes Weiner <hannes@saeurebad.de>Aaron Griffin1-55/+6
* use calloc to zero-out new packages (far more ideal) * use memcpy to copy primatives when copying package structures
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin39-917/+916
* 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-18Some confusion with variable names in unlink_file caused unlink to try and ↵Aaron Griffin1-8/+8
find the _relative_ file instead of absolute. The absolute path name has also been used in some of the output there too.
2007-01-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin15-24/+31
* 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-18Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-3/+3
* fix "warning: dereferencing type-punned pointer will break strict-aliasing rules"
2007-01-18Added strerror() output on unlink failureAaron Griffin1-68/+70
2007-01-17* Misc logging changesAaron Griffin2-10/+6
Addition of a forced fflush in an attempt to diagnose mutli-logging Removal of varargs from the internal logaction function, they are handled in alpm_logaction just fine
2007-01-17James Rosten <seinfeld90@gmail.com>Aaron Griffin1-80/+77
* _alpm_remove_commit refactoring * clean up/fixes by Dan McGee <dpmcgee@gmail.com>
2007-01-17Jürgen Hötzel <juergen@hoetzel.info>Aaron Griffin3-57/+20
* avoid repeated regex compilations (regex for search string do not change while scanning the package database) * remove needless string duplication (regex function do not change target string nor free them) * code cleanup This patch improves search performance: bash-3.2$ time ./src/pacman/pacman.static.old -Ss "(database|web).*server" >/dev/null real 0m1.026s user 0m0.544s sys 0m0.208s bash-3.2$ time ./src/pacman/pacman.static -Ss "(database|web).*server" >/dev/null real 0m0.777s user 0m0.456s sys 0m0.128s bash-3.2$
2007-01-17cvsignore cleanup and additionsAaron Griffin1-0/+6
2007-01-11* Jürgen Hötzel <juergen@hoetzel.info>Aaron Griffin3-3/+87
_alpm_db_load_pkgcache: use mergesort to improve performance
2007-01-11* Dan McGee <dpmcgee@gmail.com>Aaron Griffin1-28/+8
Documentation cleanup
2007-01-03* bug fix FS#6100 - fix --print-uris outputAaron Griffin3-2/+10
2007-01-03* Bug fix FS#6058Aaron Griffin2-0/+7
properly remove entries from "Required By" instead of wiping it out entirely
2007-01-02* Missing error label in sync.cAaron Griffin2-1/+5
* Additional debug output for db_write
2006-12-29* Removed latest fix from TODO.autoconfAaron Griffin1-67/+81
* Attempted fix for FS#6100 - "-Spd foo" failure * Beginning of refactoring from Dan McGee <dpmcgee@gmail.com>
2006-12-22Cleanup from Dan McGee <dpmcgee@gmail.com> and Jürgen Hötzel ↵Aaron Griffin4-7/+11
<juergen@hoetzel.info> * configure swig check * misc libalpm cleanup
2006-12-22* Properly fix the NoUpgrade issues.Aaron Griffin1-13/+12
2006-12-22* Unused variable 'path'Aaron Griffin1-2/+1
2006-12-21*untested* potential fix for the NoUpgrade issues.Aaron Griffin1-3/+3
2006-12-21* modeline fixes / reformattingAaron Griffin4-29/+33
* formatting / indentation fixes * makepkg: Dan McGee <dpmcgee@gmail.com> - integrity check fix Jürgen Hötzel <juergen@hoetzel.info> - EUID usage and "x$foo" check revamp
2006-12-14* Dan McGee's makepkg updates ↵Aaron Griffin2-2/+4
http://www.archlinux.org/pipermail/pacman-dev/2006-December/000792.html * configure fixes (CFLAGS) * no-strict-aliasing hacks until full C99 compliance * --with-config-file configure option
2006-12-05Corrected -Rsc operation - dependancy info was not being read from the DBAaron Griffin2-4/+7
2006-12-01* Fixed the bug where -R pkgA pkgB failed when pkgA depended on pkgBAaron Griffin1-9/+20
2006-12-01* Cosmetic changes and typo fixesAaron Griffin8-13/+39
* IgnorePkg and --ignore work again * Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
2006-11-24* Fixed some error output for "-Sd" and "-Rsc" dealing with missing/ignoredAaron Griffin4-7/+9
depends * Added valgrind suppression file
2006-11-22* Whoops util MakefileAaron Griffin1-1/+1
* Slight modification to depcmp debug output
2006-11-22* Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)Aaron Griffin14-247/+256
* 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 an error when trying to download to an unwritable locationAaron Griffin1-0/+4
2006-11-20* repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin28-787/+780
(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 Griffin2-3/+5
* Better error reporting when unpacking an archive fails * Fixed -Sc and -Scc cache dir opening/reading
2006-11-15* Initial changes to gensync - makepkg changes were not checked in from anotherAaron Griffin8-57/+83
machine - still pending * Addition of _alpm_pkg_makefilename to simplify the with/without -ARCH prefix scheme we're going with for the interim
2006-11-14* has_archname changesAaron Griffin2-1/+7
* makepkg attempt at multiple file integrity checks * honor "force" option on -S packages (not just -Su)
2006-11-14* Numerous mini valgrind fixes.Aaron Griffin27-6717/+131
* 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-08* Improved mcheck outputAaron Griffin5-7/+7
* Added minor libalpm const correctness * Mini-memory fixes
2006-11-08* Fixed an error message that should be a debug messageAaron Griffin2-5/+7
* Fixed "the big segfault" - dbs_sync list was being modified while iterating * over the list, big No-No. Now using a while loop over alpm_list_count.
2006-11-03* Modified some error output and loggingAaron Griffin2-4/+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-01Whoops forgot thisAaron Griffin1-0/+668
2006-11-01Fixed pacman -U:Aaron Griffin7-47/+65
* Accidental database read of a file-based package (whoops) * Proper fetching of url-based -U or -A Removed some newlines from _alpm_log calls, to make debug output more concise
2006-10-31Forgot to cycle to next server on download error - fixed, as well as theAaron Griffin1-2/+3
erro-case return value of _alpm_downloadfiles_forreal
2006-10-31Numerous changes:Aaron Griffin24-489/+345
* Furthered the "lazy caching" to force the pkgcache to read nothing (INFRQ_NONE) by default. Anything requiring package data should now check the infolevel of each package and attempt to update it. This could be ironed out a bit more later (by using the front-end get_info function * Switched to libfetch. Drastic changes to the download code and the callback progress bar functions. Also fixed the return value of _alpm_downloadfiles_forreal. Downloading now supports http, ftp, https, and files urls, along with 'mtime's and numerous other fancy features from libfetch.
2006-10-31Added libfetch linux port + misc changesAaron Griffin10-0/+4205
2006-10-27Fri Oct 27 21:54:32 CEST 2006 VMiklos <vmiklos@frugalware.org>Aaron Griffin1-1/+6
* alpm_parse_config(): add missing sanity checks From: http://darcs.frugalware.org/patches/pacman/20061027195432-e2957-0dcda6bdb2d7516d6a5047185bc14ccdf3fb83fc.patch
2006-10-25Moved downloaded db unpacking to the backend files, to easier allow conversionAaron Griffin5-48/+37
from db to whatever format we need.
2006-10-24Added PM_DLFNM_LEN define, via VMiklosAaron Griffin3-5/+12
http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=commitdiff;h=20061023154138-e2957-de4837230b091cbc2136306e1c55a4b79cc72fc8.gz
2006-10-21Reverted the "out of memory" error to 1 to prevent API changes.Aaron Griffin1-1/+1
This should be changed later, or at least everything fixed up. Typically a 1 return indicates "an error occured" and some functions still might just return error on failure.
2006-10-21Fixes from frugalware: few 'typos' included while patchingAaron Griffin4-14/+31
Also re-added Judd's dependancy fix in libalpm/deps.c
2006-10-21More extern moving - keep extern decls in the headers makes for easier/betterAaron Griffin4-15/+17
reuse.
2006-10-21Minor changes:Aaron Griffin9-14/+3
* Moved the pmhandle_t extern decl around * Fixed a doxygen complaint