summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
AgeCommit message (Collapse)AuthorFilesLines
2007-01-17Jürgen Hötzel <juergen@hoetzel.info>Aaron Griffin1-15/+0
* 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$
2006-11-22* Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)Aaron Griffin1-6/+9
* 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-20* repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin1-0/+1
(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/+4
* 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 Griffin1-40/+0
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* Numerous mini valgrind fixes.Aaron Griffin1-16/+63
* 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-10-31Numerous changes:Aaron Griffin1-31/+43
* 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-25Moved downloaded db unpacking to the backend files, to easier allow conversionAaron Griffin1-1/+1
from db to whatever format we need.
2006-10-20A handful of minor changes:Aaron Griffin1-2/+2
* Removed the PMList typedef, in favor of the same naming scheme other structs use 'pmlist_t' * Added a time stamp on debug output, to make it more informational * Moved alpm_db_register to _alpm_db_register, making the public function not take a callback parameter
2006-10-15Merged frugalware changes (too many to list). Also added some config fileAaron Griffin1-41/+221
handling changes (support [sections] to carry over to included files - this helps with backwards compatibility with existing pacman config files)
2006-09-28removed libtar support in favour of libarchiveJudd Vinet1-53/+34
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-13/+14
2006-02-16fixed directory roots when running scripletsAurelien Foret1-1/+7
2006-02-16- grep is now a static functionAurelien Foret1-28/+26
- code cleanup
2006-01-26reworked lock handling (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret1-1/+4
2006-01-09- merged pkg_new and pkg_dummy functionsAurelien Foret1-1/+1
- renamed _alpm_log_action to _alpm_logaction
2006-01-07code cleanup (mainly removed line spaces at the beginning of lines by ↵Aurelien Foret1-2/+4
tabulations)
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet1-1/+1
2006-01-01- fixed a regression with pacman 2.x (patch from VMiklos ↵Aurelien Foret1-14/+19
<vmiklos@frugalware.org>) - code reowrk to ensure the /tmp/alpm_foo directory is always removed
2005-11-05Used the chroot syscall instead of the chroot binaryAurelien Foret1-26/+34
(patch from Christian Hamaer <krics@linuxforum.hu>)
2005-10-09added conversation callback support for transactionsJudd Vinet1-5/+5
2005-10-08Merging in recent fixes/additions from 2.9.7Judd Vinet1-0/+19
2005-10-06Added a CYGWIN define to include header files required to build in a Cygwin ↵Aurelien Foret1-0/+3
environment
2005-10-05Applied reworked patch from VMiklos (vmiklos@frugalware.org)Aurelien Foret1-4/+1
Close the lock file descriptor upon handle release
2005-04-24fixed some potential resource leaksAurelien Foret1-1/+6
2005-03-30fixed a log maskAurelien Foret1-1/+1
2005-03-29backport from pacman 2.9.5 - chdirAurelien Foret1-3/+9
2005-03-29put back 5 _alpm_log() callsAurelien Foret1-9/+5
2005-03-29Replaced snprintf calls by the SNPRINTF macro to avoid buffer overflows when ↵Aurelien Foret1-1/+1
copying strings
2005-03-28improved logs (use _alpm_log instead of fprintf)Aurelien Foret1-4/+2
2005-03-26More backport from pacman 2.9.5 (mainly for resolvedeps)Aurelien Foret1-3/+8
2005-03-26updated commentsAurelien Foret1-2/+2
2005-03-25backported fixes for trim() from pacman 2.9.5Aurelien Foret1-1/+11
2005-03-19Rework for fixed length stringsAurelien Foret1-1/+2
2005-03-16Code reformattingAurelien Foret1-1/+1
2005-03-15Initial revisionJudd Vinet1-0/+401