aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* vdb: add a q_vdb_pkg_eat helper to unify various call stylesMike Frysinger2014-03-101-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 buffersMike Frysinger2014-03-101-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 gitMike Frysinger2014-03-091-4/+2
|
* drop support for old style virtuals as the tree has not carried them in a ↵Mike Frysinger2014-02-181-10/+2
| | | | long time
* qdepends: warn if no matches were found #459970Mike Frysinger2013-09-291-10/+12
|
* qdepends: include depend file in debug outputMike Frysinger2013-09-291-3/+3
|
* revert accidental revertMike Frysinger2013-09-291-2/+12
|
* scandirat: use _DIRENT_HAVE_D_RECLEN to be slightly more portable #485430Mike Frysinger2013-09-291-12/+2
|
* qdepends: check for whitespace around node elements as PMS requires it and ↵Mike Frysinger2013-09-291-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 Frysinger2013-09-291-9/+18
| | | | appropriately
* qdepends: add a --format mode to make testing easierMike Frysinger2013-09-291-19/+68
|
* qdepends: constify argsMike Frysinger2013-09-291-28/+20
|
* qdepends: use xzallocMike Frysinger2013-09-291-4/+3
|
* qdepends: fix by Andreas Fink for --all handling #440048Mike Frysinger2012-11-101-2/+3
|
* do not warn if we could not eat the depends file since it might not exist in ↵Mike Frysinger2011-12-211-9/+4
| | | | which case we do not care #395591 by Tomasz Wasiak
* add _q_unused_ to fix -Wunused-parameter gcc warningsMike Frysinger2011-12-191-3/+3
|
* add a category filter to q_vdb_foreach_pkgMike Frysinger2011-12-181-4/+4
|
* overhaul vdb walkingMike Frysinger2011-12-181-172/+120
|
* combine the portroot/portvdb chdirs to avoid leading slash issues in portvdb ↵Mike Frysinger2011-03-171-6/+6
| | | | itself
* constify more stringsMike Frysinger2011-02-211-4/+4
|
* - update headersNed Ludd2010-04-071-5/+5
|
* introduce and use xchdir()Mike Frysinger2010-01-131-12/+10
|
* - fix crash in qdepends. Bug 263892Ned Ludd2009-08-291-4/+5
|
* - dont puke with the -Q option when the vdb/USE file does not exist.Ned Ludd2008-03-141-3/+6
|
* - update copyright headersv0.1.27Ned Ludd2007-05-241-5/+5
|
* - whitespace cleanupsNed Ludd2007-05-231-8/+2
|
* fix size warningsMike Frysinger2007-04-081-3/+3
|
* - raise buffer size for qdepends and don't warn on empty filesNed Ludd2007-01-271-5/+9
|
* fix style/whitespaceMike Frysinger2006-11-091-3/+3
|
* dont cast xmalloc returnMike Frysinger2006-11-081-3/+3
|
* do a few checks to make sure USE/DEPEND exist before we eat themMike Frysinger2006-10-101-4/+14
|
* fix buffer underflow in dep_flatten_tree() as pointed out by exg and handle ↵Mike Frysinger2006-10-091-6/+19
| | | | the resulting NULL ptr result
* - Raise buffer sizes cuz X/PHP is such a fatty. TGL bug 134488Ned Ludd2006-06-051-7/+7
|
* - depends buffer is to small for X and PHP these daysv0.1.18Ned Ludd2006-06-041-5/+5
|
* define stub functions for now since the weak handling is broken when ↵Mike Frysinger2006-01-261-2/+4
| | | | building as a PIE
* use the APPLET_ define style to enable/disable applets as solar was doing beforeMike Frysinger2006-01-251-3/+3
|
* touchup how we declare/include applets so that many steps can be automatedMike Frysinger2006-01-241-2/+6
|
* update copyright yearsMike Frysinger2006-01-051-5/+5
|
* - remove CDEPEND/-c option. -k replaces it if you really want to read those ↵Ned Ludd2005-12-311-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 Frysinger2005-12-301-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 vdbMike Frysinger2005-12-301-16/+21
|
* define our own _Q_PATH_MAX rather than relying on _POSIX_PATH_MAX/PATH_MAXMike Frysinger2005-12-301-3/+3
|
* add a warning if we are unable to eat a depend file, and increase the buffer ↵Mike Frysinger2005-12-301-7/+13
| | | | size to something more useful
* declare query constMike Frysinger2005-12-301-6/+6
|
* - added qatom and removed the need for the applets enumNed Ludd2005-12-111-3/+3
|
* define rcsid strings as constMike Frysinger2005-11-241-2/+2
|
* - added per applet rcsidNed Ludd2005-11-061-2/+2
|
* - added vdb virtual providers resolving codeNed Ludd2005-11-011-2/+2
|
* - save and restore cwd when resolving virtualsNed Ludd2005-10-301-5/+10
|
* - # comment out debug code from last overcommitNed Ludd2005-10-291-3/+3
|