aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* qgrep: fix Coverity 206568 Logically dead codeFabian Groffen2020-01-191-4/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: fix description for -Nv0.84Fabian Groffen2020-01-061-2/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* *: use new PF in places were it was simulatedFabian Groffen2020-01-011-4/+3
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: fix matching revisioned ebuildsFabian Groffen2019-10-031-3/+4
| | | | | Bug: https://bugs.gentoo.org/696078 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: fix command descriptionsFabian Groffen2019-06-211-1/+0
| | | | | Bug: https://bugs.gentoo.org/688442 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/atom: make atom_format smarter to unbreak PuppetFabian Groffen2019-06-131-1/+1
| | | | | | | | | The default portage provider in Puppet uses qatom in a rather clumpsy way. The newer formatting broke it because they don't use explicit formatting. Make atom_format somewhat smarter to unbreak Puppet's usage. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: print filename for matches by default, fix atom_compare callFabian Groffen2019-06-091-73/+27
| | | | | | | | remove very similar vdb callback in favour of generic tree one format atoms using atom_format for consistency and ease of use retrieve full atoms when SLOT or REPO matches are attempted Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: plug filedescritor leakFabian Groffen2019-06-081-0/+1
| | | | | Bug: https://bugs.gentoo.org/687640 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: use tree_get_atomFabian Groffen2019-05-101-13/+4
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/tree: merge vdb and cacheFabian Groffen2019-05-091-12/+17
| | | | | | | | since cache was basically a shadow of vdb, and vdb grew too many non-vdb-like behaviour, renamed to tree such that further features only have to be implemented once Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/vdb: drop q_ prefixFabian Groffen2019-05-061-2/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/{vdb,cache}: unify sorted and unsorted traversalFabian Groffen2019-04-281-2/+2
| | | | | | | | Get vdb to know some bits for cache, such that cache can be a more shallow wrapper around it. Use the same code to traverse in sorted mode by just keeping a temp list in the sorted case. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: use colours for atom printing, and support -R/--repoFabian Groffen2019-04-281-17/+26
| | | | | | | use same colour scheme as with qlist, qdepends, etc. support printing repo for ebuilds mode Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: rewrite using libq/vdb and libq/cacheFabian Groffen2019-04-281-346/+410
| | | | | | | (re)use the traversion logic from libq instead of re-implementing this. Additional benefits are less code and usage of metadata when available. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* reinitialize_flat: removeFabian Groffen2019-04-251-4/+3
| | | | | | | | | | | remove the flat cache (just a file list of directory contents) - it can easily get stale - traversing a directory isn't that expensive nowadays (and we don't do VAX) the code should switch to using libq/cache instead Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qgrep: squash truncation warning on SolarisFabian Groffen2019-03-271-2/+6
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q: fix various issues on Linux systemsFabian Groffen2019-03-271-5/+10
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: compile applets as separate objectsFabian Groffen2019-03-271-29/+62
| | | | | | | | Instead of including everything from a single file, compile each applet separately. This standardises things somewhat, and allows for parallel compilation. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* fix GCC-8.2 warningsFabian Groffen2019-03-011-3/+4
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* update copyrightsFabian Groffen2018-04-051-1/+1
|
* fix signedness warningsFabian Groffen2018-03-231-2/+3
|
* Fix -Wmaybe-uninitialized.Robin H. Johnson2017-11-261-1/+1
| | | | | | | | | | | | | In file included from include_applets.h:13:0, from main.c:1485: qgrep.c: In function ‘qgrep_main’: qgrep.c:212:5: warning: ‘dentry’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (*cat_dirent_pt == NULL || *cat_dir_pt == NULL) ^ qgrep.c:245:17: note: ‘dentry’ was declared here struct dirent *dentry; Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* drop _q_static and standardize func prototypes a bitMike Frysinger2016-12-281-18/+17
|
* usage: add an extended text sectionv0.63Mike Frysinger2016-03-271-1/+1
| | | | | | Many applets now are so complicated that a single line of text isn't sufficient to describe all of its capabilities/nuances. Allow them to pass in an arbitrary string of data to contain examples.
* clean up old debug statementsMike Frysinger2015-12-161-3/+0
| | | | | | Much of this debug output has outlived its usefulness now that the code has stabilized. Clean it all up to make the debug builds way less noisy and keep from breaking the tests.
* qgrep/quse: add multiple overlay supportMike Frysinger2015-11-271-176/+190
| | | | | | | This is a pretty straight forward extension. The code hasn't seen any clean ups in the process (although it probably should). URL: https://bugs.gentoo.org/553260
* qgrep/qpkg: use the cache file givenMike Frysinger2015-05-191-2/+2
| | | | | The qgrep code needs a rework to avoid chdir assumptions, but that's much larger than fixing the cache file name, so punt for later.
* build: convert all cvs references to gitMike Frysinger2014-03-091-4/+2
|
* kill off more spurious/useless parensMike Frysinger2012-10-281-7/+7
|
* Fix compiler warnings for signedness.v0.11Robin H. Johnson2012-08-131-3/+3
|
* add xregcomp helpersMike Frysinger2011-10-031-16/+5
|
* combine the portroot/portvdb chdirs to avoid leading slash issues in portvdb ↵Mike Frysinger2011-03-171-4/+5
| | | | itself
* constify more stringsMike Frysinger2011-02-211-3/+3
|
* - update headersNed Ludd2010-04-071-5/+5
|
* introduce and use xchdir()Mike Frysinger2010-01-131-8/+5
|
* - update copyright headersv0.1.27Ned Ludd2007-05-241-5/+5
|
* - whitespace cleanupsNed Ludd2007-05-231-3/+2
|
* fix size warningsMike Frysinger2007-04-081-3/+3
|
* - src.style fixupsNed Ludd2007-04-051-5/+4
|
* - TGL is at it again. kicking asses and coding patches.. Bug 173005Ned Ludd2007-04-021-27/+127
|
* - shorten names with argsNed Ludd2007-03-261-10/+10
|
* - This commit adds -A/-B options for qgrep (context lines) from TGL bug 172240Ned Ludd2007-03-261-30/+227
|
* - Misc enhancements for qgrep. TGL bug 171374Ned Ludd2007-03-261-18/+166
|
* - add a -s/--skip-comments option to qgrep. TGL bug 170797Ned Ludd2007-03-171-5/+14
|
* add a -E/--eclass option to qgrep. TGL bug 170795Ned Ludd2007-03-171-13/+36
|
* fix style/whitespaceMike Frysinger2006-11-091-3/+3
|
* - update reinitialize_metacache code so -mr or -rm work. rename all variable ↵Ned Ludd2006-02-121-3/+3
| | | | to quse_all in quse applet. change globbing support to use glob64. Allow envvar CACHE_EBUILD_FILE to override PORTDIR/.ebuild.x (requested by genone)
* 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-10/+4
|