summaryrefslogtreecommitdiffstats
path: root/expac.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-29avoid use of alpm_db_register_local() for recent libalpmDave Reisner1-0/+4
2011-01-02copyright 2011Dave Reisner1-1/+1
2010-12-14Revert "fix memory leak in print_pkg"Dave Reisner1-24/+11
This reverts commit 236ef35e1ce9eccfa47d37718b763decb7077136. Causes memory corruption in some cases. We'd rather leak a little than risk a segmentation fault. As expac is guaranteed to be a short lived process, we'll opt for letting the kernel cleanup after us instead of adding what appears to be a lot of extra logic.
2010-12-12print ? for unknown tokensDave Reisner1-0/+4
2010-12-11%k is sync onlyDave Reisner1-2/+2
2010-12-10fix memory leak in print_pkgDave Reisner1-11/+24
lists are allocated when they're requested, and not resident in memory when alpm is initialized. grab a pointer to them so they can be freed after each loop.
2010-12-10allow real printf formatters for simple stringsDave Reisner1-45/+23
It's kind of silly to verify this kind of formatting, so I'm just letting it explode (which happens not too horribly) when the user inevitably does something stupid.
2010-12-08if no targets are provided on a search, dump the entire DB(s)Dave Reisner1-2/+10
2010-12-01declare globals on separate lines for uniformityDave Reisner1-2/+3
2010-12-01don't hardcode defaultsDave Reisner1-4/+7
2010-12-01refactor resolve_pkgDave Reisner1-6/+8
fixes multiple issues with repo/pkg style targets and should cause these queries to run slightly faster.
2010-11-30filter token availability based on query typeDave Reisner1-5/+22
use verify_format_string to halt expac if a token is provided that is query type dependent and we don't match the query type.
2010-11-30add %w token as install reasonDave Reisner1-3/+0
2010-11-30add install reason as %wDave Reisner1-1/+7
also, declare another global 'local' so we know when we're only parsing locally or not.
2010-11-30don't print a pkg delimeter if pkg has no outputDave Reisner1-38/+53
2010-11-30add MIT license headerDave Reisner1-0/+26
2010-11-30fix up commentingDave Reisner1-5/+6
2010-11-30assorted cleanup. remove assertions and unused format tokenDave Reisner1-5/+3
2010-11-30fix leak by always allocating for the dblistDave Reisner1-7/+3
2010-11-30Implement searching. Why am I rewriting pacman?Dave Reisner1-34/+70
2010-11-30fix bug in verify_formatDave Reisner1-2/+2
2010-11-30fix up usage funcDave Reisner1-3/+3
2010-11-30initial commitDave Reisner1-0/+490