aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* qatom: print SUBSLOT as part of SLOTHEADmasterFabian Groffen23 hours1-6/+9
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/atom: support/parse SUBSLOTFabian Groffen23 hours2-3/+14
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* configure: remove removed dir tests/reinitialize(/Makefile)Fabian Groffen31 hours2-3/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* TODO: add some ideas about qlopFabian Groffen31 hours1-0/+7
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* TODO: add note about further improvements for qdepends with libq/cacheFabian Groffen31 hours1-1/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* man: regenerateFabian Groffen31 hours14-32/+19
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* man/mkman: fix authors showing up on random pagesFabian Groffen31 hours1-14/+5
| | | | | | | | | | dropped multiprocessing crap as it complicates and doesn't really speed up anything (I suspected it to be faulty at first, but left it out) the real issue was COMMON_AUTHORS not being copied, therefore any temp additions were done to the common authors list Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* TODO: add note about odd libq/vdb behaviour on pkg_freeFabian Groffen31 hours1-0/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qsearch: rewrite to use libq/cacheFabian Groffen31 hours1-181/+100
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/cache: set repo in cache_pkg_ctx when foundFabian Groffen32 hours2-6/+26
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* reinitialize_flat: removeFabian Groffen32 hours11-1801/+11
| | | | | | | | | | | 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>
* libq/cache: add mode for plain ebuilds (not using any cache)Fabian Groffen33 hours2-14/+171
| | | | | | | | Make cache a slight misnomer by also reading ebuilds directly if no cache appears available. This way cache can be used to transparently query a repository in the best possible way. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q_vdb_open2: introduce version that is optionally quietFabian Groffen3 days2-3/+12
| | | | | | For probing, it may be nice not to emit a warning for each probe. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q_vdb_filter_cat: make name check more strictFabian Groffen3 days21-32/+40
| | | | | | | | Validate to exclude things like distfiles, metadata, profiles. Require the hyphen except for "virtual". This isn't strictly conforming to PMS but matches Gentoo reality. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* TODO: update traversal optimisation noteFabian Groffen6 days1-1/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qcache: rewrite to use new libq/cacheFabian Groffen6 days1-616/+396
| | | | | | This fixes qcache for Prefix and no longer needs q's cache files. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/cache: rework to be vdb-like enumerator abstractionFabian Groffen6 days2-47/+240
| | | | | | | Using this code, one can walk through a repository's metadata cache (md5-cache or (PMS) cache) and read cache entries conveniently. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* atom: allow category-only atomsFabian Groffen7 days1-3/+25
| | | | | | This allows to match categories via atom matches, using e.g. mail-client/ Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: don't run tests by defaultFabian Groffen9 days30-379/+277
| | | | | | remnant of pre-automake Makefiles having default all: check rule Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: avoid race due to duplicate check targetFabian Groffen12 days8-30/+18
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: cleanup and standardise tests runningFabian Groffen12 days45-53/+25747
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: cleanup Makfile preparing for distFabian Groffen12 days3-423/+123
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: approve changed qlist outputFabian Groffen13 days1-0/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qlist: change behaviour to use colours and no parenthesisFabian Groffen14 days3-27/+24
| | | | | | | | | - in list mode, show colours by default (can be disabled in the normal way using -C) - in USE-flag mode, don't output ( ) so the output is compatible with e.g. package.use Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* travis: remove debug marker, see if output matches withoutFabian Groffen2019-04-081-1/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* travis: see if sort is calledFabian Groffen2019-04-081-2/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* travis: try line splitting for xargsFabian Groffen2019-04-081-10/+4
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* travis: skip over to interesting testFabian Groffen2019-04-081-0/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* travis: generate debug messages to perhaps get a glimpse of the problemFabian Groffen2019-04-081-1/+4
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: last attempt (?) to get qdepends test running on TravisFabian Groffen2019-04-081-2/+4
| | | | | | | | Perhaps old bash, or perhaps using dash (even though it shouldn't), well maybe the greedy matches aren't supported well, replace with old cut to split up strings. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: avoid string comparison in qdependsFabian Groffen2019-04-081-3/+6
| | | | | | | | Travis seems to not match this, so rewrite using a case-switch. Perhaps the shell used isn't bash or some version which doesn't grok the use I envisioned. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qdepends: update manpage for rewriteFabian Groffen2019-04-085-69/+79
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: try and get qdepends test to clear regarding order changesFabian Groffen2019-04-081-1/+2
| | | | | | | Travis for some reason sorts differently, try forcing explict C locale, even though Travis should be using that already. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qdepends: rewrite to better match forward/backward dependenciesFabian Groffen2019-04-0716-610/+639
| | | | | | | | | | | | | | - dep: extract dependency functions into separate files for later reuse - by default, report all deps for all *DEPEND combined (duplicates removed) - allow listing per *DEPEND using -v, pretty-print and highlight the atoms seleted or queried for (-Q) - support reverse querying multiple atoms - make -Q output match forward output, highlight the match, to just print the match, use -q Bug: https://bugs.gentoo.org/682056 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* atoms: add proper support for blockers and USE dependenciesFabian Groffen2019-04-078-95/+298
| | | | | | | | | - ignore SLOT in atom_compare when not set on both sides - parse USE-dependencies, properly removing it from PV - parse blockers (! and !!) separate from version ranges, such that the original meaning can be restored and differentiated from Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qlop: support standard date output format in parse_dateFabian Groffen2019-03-293-6/+16
| | | | | | This allows to cut 'n' paste dates to limit output. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q: silence warning on DarwinFabian Groffen2019-03-271-0/+4
| | | | 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-2714-18/+35
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* configure: ignore expansion undefined warnings for gnulibFabian Groffen2019-03-272-0/+80
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: compile applets as separate objectsFabian Groffen2019-03-2743-1290/+1666
| | | | | | | | 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>
* libq: split out cache-related funcs from main/qsearchFabian Groffen2019-03-254-7/+302
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* remove_extra_space: move to libq/rmspaceFabian Groffen2019-03-223-28/+38
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: copy q for install test for DarwinFabian Groffen2019-03-202-2/+3
| | | | | | | | | On Darwin, resolving the path of a hardlink, resolves to the first entry for it, e.g. not necessarily the path the executable was called at. Since this makes the test fail, simply copy the binary, to make sure it always works. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: ensure repeatable results on any host when TRAVIS_OS_NAME is setFabian Groffen2019-03-201-1/+1
| | | | | | | Always use the static "cache" of ebuilds provided in the tree, even if we find a tree when we're testing in Travis mode. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: fix misc issues found on LinuxFabian Groffen2019-03-199-0/+46
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* travis: touch files in order not to trigger autoreconfFabian Groffen2019-03-191-0/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q: fix misc issues found on DarwinFabian Groffen2019-03-1913-51/+1362
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: add gnulib sourcesFabian Groffen2019-03-19414-639/+78291
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: add autoconf helper filesFabian Groffen2019-03-1813-27/+16694
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>