Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vdb: add a q_vdb_pkg_eat helper to unify various call styles | Mike Frysinger | 2014-03-10 | 1 | -4/+4 |
| | | | | | | | | | Now that the core eat func is based on dynamic bufs, it's a lot easier to create a core vdb helper for eating pkg files. This has the added advantage of making the pkg dir open a delayed call. We only opendir when we actually want to read files out of it. For many funcs which don't do that, it saves a lot of syscall overhead. | ||||
* | eat_file: convert API to work on dynamic buffers | Mike Frysinger | 2014-03-10 | 1 | -6/+8 |
| | | | | | | | | | | | | | | | Rather than use static allocated buffers everywhere where we assume we picked a size big enough for real world uses (and just silently truncate or die in large edge cases), convert the API to use malloc instead. We will grow the buffers (never shrink) so that repeat calls should ramp up to the max quickly and thus avoid having to call malloc() repeatedly. This might report memory leaks with some funcs as we hold on to some buffers indefinitely since we know the buffer isn't used outside the context of the func. Helps out when the func is called repeatedly. This should make future enhancements (like eating more than one element in a vdb pkg dir) a lot easier. | ||||
* | build: convert all cvs references to git | Mike Frysinger | 2014-03-09 | 1 | -4/+2 |
| | |||||
* | drop support for old style virtuals as the tree has not carried them in a ↵ | Mike Frysinger | 2014-02-18 | 1 | -10/+2 |
| | | | | long time | ||||
* | qdepends: warn if no matches were found #459970 | Mike Frysinger | 2013-09-29 | 1 | -10/+12 |
| | |||||
* | qdepends: include depend file in debug output | Mike Frysinger | 2013-09-29 | 1 | -3/+3 |
| | |||||
* | revert accidental revert | Mike Frysinger | 2013-09-29 | 1 | -2/+12 |
| | |||||
* | scandirat: use _DIRENT_HAVE_D_RECLEN to be slightly more portable #485430 | Mike Frysinger | 2013-09-29 | 1 | -12/+2 |
| | |||||
* | qdepends: check for whitespace around node elements as PMS requires it and ↵ | Mike Frysinger | 2013-09-29 | 1 | -2/+12 |
| | | | | it makes parsing of USE deps possible #470180 | ||||
* | qdepends: pass back an empty node when parsing is OK so -f can exit ↵ | Mike Frysinger | 2013-09-29 | 1 | -9/+18 |
| | | | | appropriately | ||||
* | qdepends: add a --format mode to make testing easier | Mike Frysinger | 2013-09-29 | 1 | -19/+68 |
| | |||||
* | qdepends: constify args | Mike Frysinger | 2013-09-29 | 1 | -28/+20 |
| | |||||
* | qdepends: use xzalloc | Mike Frysinger | 2013-09-29 | 1 | -4/+3 |
| | |||||
* | qdepends: fix by Andreas Fink for --all handling #440048 | Mike Frysinger | 2012-11-10 | 1 | -2/+3 |
| | |||||
* | do not warn if we could not eat the depends file since it might not exist in ↵ | Mike Frysinger | 2011-12-21 | 1 | -9/+4 |
| | | | | which case we do not care #395591 by Tomasz Wasiak | ||||
* | add _q_unused_ to fix -Wunused-parameter gcc warnings | Mike Frysinger | 2011-12-19 | 1 | -3/+3 |
| | |||||
* | add a category filter to q_vdb_foreach_pkg | Mike Frysinger | 2011-12-18 | 1 | -4/+4 |
| | |||||
* | overhaul vdb walking | Mike Frysinger | 2011-12-18 | 1 | -172/+120 |
| | |||||
* | combine the portroot/portvdb chdirs to avoid leading slash issues in portvdb ↵ | Mike Frysinger | 2011-03-17 | 1 | -6/+6 |
| | | | | itself | ||||
* | constify more strings | Mike Frysinger | 2011-02-21 | 1 | -4/+4 |
| | |||||
* | - update headers | Ned Ludd | 2010-04-07 | 1 | -5/+5 |
| | |||||
* | introduce and use xchdir() | Mike Frysinger | 2010-01-13 | 1 | -12/+10 |
| | |||||
* | - fix crash in qdepends. Bug 263892 | Ned Ludd | 2009-08-29 | 1 | -4/+5 |
| | |||||
* | - dont puke with the -Q option when the vdb/USE file does not exist. | Ned Ludd | 2008-03-14 | 1 | -3/+6 |
| | |||||
* | - update copyright headersv0.1.27 | Ned Ludd | 2007-05-24 | 1 | -5/+5 |
| | |||||
* | - whitespace cleanups | Ned Ludd | 2007-05-23 | 1 | -8/+2 |
| | |||||
* | fix size warnings | Mike Frysinger | 2007-04-08 | 1 | -3/+3 |
| | |||||
* | - raise buffer size for qdepends and don't warn on empty files | Ned Ludd | 2007-01-27 | 1 | -5/+9 |
| | |||||
* | fix style/whitespace | Mike Frysinger | 2006-11-09 | 1 | -3/+3 |
| | |||||
* | dont cast xmalloc return | Mike Frysinger | 2006-11-08 | 1 | -3/+3 |
| | |||||
* | do a few checks to make sure USE/DEPEND exist before we eat them | Mike Frysinger | 2006-10-10 | 1 | -4/+14 |
| | |||||
* | fix buffer underflow in dep_flatten_tree() as pointed out by exg and handle ↵ | Mike Frysinger | 2006-10-09 | 1 | -6/+19 |
| | | | | the resulting NULL ptr result | ||||
* | - Raise buffer sizes cuz X/PHP is such a fatty. TGL bug 134488 | Ned Ludd | 2006-06-05 | 1 | -7/+7 |
| | |||||
* | - depends buffer is to small for X and PHP these daysv0.1.18 | Ned Ludd | 2006-06-04 | 1 | -5/+5 |
| | |||||
* | define stub functions for now since the weak handling is broken when ↵ | Mike Frysinger | 2006-01-26 | 1 | -2/+4 |
| | | | | building as a PIE | ||||
* | use the APPLET_ define style to enable/disable applets as solar was doing before | Mike Frysinger | 2006-01-25 | 1 | -3/+3 |
| | |||||
* | touchup how we declare/include applets so that many steps can be automated | Mike Frysinger | 2006-01-24 | 1 | -2/+6 |
| | |||||
* | update copyright years | Mike Frysinger | 2006-01-05 | 1 | -5/+5 |
| | |||||
* | - remove CDEPEND/-c option. -k replaces it if you really want to read those ↵ | Ned Ludd | 2005-12-31 | 1 | -7/+10 |
| | | | | entries. Made qdepends not bail if PDEPEND or other vdb files do not exist which is the case with >=portage-2.1_pre3 when they are 0 byte | ||||
* | rename the global quiet option to -q from -Q, have qfile use it rather than ↵ | Mike Frysinger | 2005-12-30 | 1 | -5/+5 |
| | | | | its own, and rename qdepend query (-q) option to -Q | ||||
* | change len to size_t and add error handling if USE file was removed from vdb | Mike Frysinger | 2005-12-30 | 1 | -16/+21 |
| | |||||
* | define our own _Q_PATH_MAX rather than relying on _POSIX_PATH_MAX/PATH_MAX | Mike Frysinger | 2005-12-30 | 1 | -3/+3 |
| | |||||
* | add a warning if we are unable to eat a depend file, and increase the buffer ↵ | Mike Frysinger | 2005-12-30 | 1 | -7/+13 |
| | | | | size to something more useful | ||||
* | declare query const | Mike Frysinger | 2005-12-30 | 1 | -6/+6 |
| | |||||
* | - added qatom and removed the need for the applets enum | Ned Ludd | 2005-12-11 | 1 | -3/+3 |
| | |||||
* | define rcsid strings as const | Mike Frysinger | 2005-11-24 | 1 | -2/+2 |
| | |||||
* | - added per applet rcsid | Ned Ludd | 2005-11-06 | 1 | -2/+2 |
| | |||||
* | - added vdb virtual providers resolving code | Ned Ludd | 2005-11-01 | 1 | -2/+2 |
| | |||||
* | - save and restore cwd when resolving virtuals | Ned Ludd | 2005-10-30 | 1 | -5/+10 |
| | |||||
* | - # comment out debug code from last overcommit | Ned Ludd | 2005-10-29 | 1 | -3/+3 |
| |