summaryrefslogtreecommitdiffstats
path: root/expac.c
AgeCommit message (Collapse)AuthorFilesLines
2011-08-07fix up alpm API calls for alpm7Dave Reisner1-50/+32
2011-08-07use proper suffixes for package sizesDave Reisner1-3/+7
2011-07-30allow null terminators in format stringDave Reisner1-0/+3
2011-07-23add static qualifier to trim_optdepDave Reisner1-1/+1
2011-07-23add %o for optdepends without descriptionsDave Reisner1-0/+14
2011-07-23don't report not found on found packagesDave Reisner1-1/+3
Use a flag var to declare found/notfound instead of looking at the pkg reference itself, which will be inevitably overwritten on each repo iteration.
2011-07-17fix verbose error on each repo when package isn't foundDave Reisner1-13/+8
2011-07-17add %! as an auto-increment record counterDave Reisner1-0/+4
2011-07-17return 1 if nothing is printed by print_pkgDave Reisner1-1/+1
2011-05-29return first of each key, not for all keysDave Reisner1-1/+1
2011-05-29add -1 option for limited -S operationsDave Reisner1-2/+11
2011-04-05fix usageDave Reisner1-2/+2
2011-04-05add support for searching by groupDave Reisner1-2/+17
2011-03-23don't depend on format pointer reaching a NULLDave Reisner1-2/+4
2011-03-23remove preproc logic for pacman 3.4.3/3.5.0Dave Reisner1-6/+0
2011-03-21add missing parameter in function protoDave Reisner1-1/+1
2011-03-21declare resolve_pkg as staticDave Reisner1-1/+1
2011-03-21return(val) => return valDave Reisner1-25/+25
2011-03-21don't parse RootDir directiveDave Reisner1-3/+1
2011-03-16mimic pacman behavior of dumping the entire DB with no targetsDave Reisner1-10/+8
2011-02-26alpm_db_get_pkgcache_list has gone awayDave Reisner1-6/+2
2011-02-06use alpm_db_get_pkgcache_list if availableDave Reisner1-2/+6
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