aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* qatom: adjust to changed tree_match_atom interfaceFabian Groffen2020-05-251-5/+11
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qatom: add -s switch to strictly emulate a call to atom_compareFabian Groffen2020-05-161-9/+20
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qatom: add -l option to match an atom against the treeFabian Groffen2020-01-191-6/+27
| | | | | | | returns the latest available version of the atom requested, or nothing when not found Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* misc fixes for valgrindFabian Groffen2019-11-301-1/+1
| | | | | | | mainly memory and socket leaks, sometimes using invalid data, this is related to bug #701402 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>
* libq/atom: add the antislotFabian Groffen2019-06-091-6/+24
| | | | | | | | | Introduce antislot matching. This allows to match a SLOT, but not the given one. This is mostly useful for finding packages to rebuild after upgrading a dependant package. Bug: https://bugs.gentoo.org/683430 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/atom: retain all input in atom_format_rFabian Groffen2019-06-051-2/+3
| | | | | | | Copy the remainder, as well as data before and inbetween expandos. Bug: https://bugs.gentoo.org/687416 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq/atom: move atom_format hereFabian Groffen2019-05-051-93/+1
| | | | | | | move atom_print from qatom to libq/atom as atom_format so it can be reused by multiple applets Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qatom: print SUBSLOT as part of SLOTFabian Groffen2019-04-251-6/+9
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* atoms: add proper support for blockers and USE dependenciesFabian Groffen2019-04-071-8/+32
| | | | | | | | | - 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>
* build: compile applets as separate objectsFabian Groffen2019-03-271-6/+8
| | | | | | | | 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>
* depends: fix matching atoms for bug #668418Fabian Groffen2018-10-261-1/+2
| | | | | | | | atoms in dependency strings can contain built-with-use declarations in bracket notation, so ensure we ignore that when feeding this into atom_explode. Bug: https://bugs.gentoo.org/668418
* update copyrightsFabian Groffen2018-04-051-1/+1
|
* qatom_printf: support REPO expansionFabian Groffen2018-04-021-0/+3
|
* qatom: print unset members as <unset> instead of relying on libcFabian Groffen2018-04-021-8/+12
| | | | | | | | | Some libcs do NOT do the favour of turning a NULL-pointer into the string "(null)", but segfault instead. This is just a friendly guesture of libcs which do, but it is nowhere standard or that this should result in "(null)". While "(null)" is actually a developer concept, and possibly out of context for users, check for printing NULL-pointers and replace them with "<unset>" instead.
* drop _q_static and standardize func prototypes a bitMike Frysinger2016-12-281-2/+2
|
* 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.
* qatom: add a --format flag for controlling outputMike Frysinger2015-10-151-16/+88
| | | | | | | | | | | | | | Rather than forcing people to deal with the ad-hoc output and run it through another program to reassemble things, add a --format flag so they can explicitly get the output hey care about. This drops support for the letter field, but no one was really using that in the first place. If anyone does care, we can re-add it as a new field. This does change the output slightly from existing behavior: there will be extra spaces between the latter fields, but this shouldn't break existing programs as they generally split on whitespace.
* qatom: always display SLOT in verbose modeJeroen Roovers2015-09-151-2/+2
| | | | URL: https://bugs.gentoo.org/560320
* build: convert all cvs references to gitMike Frysinger2014-03-091-5/+2
|
* initial support for prefix/suffix operators #369225 by Christian RuppertMike Frysinger2013-04-291-2/+6
|
* qatom: check # of args before running main codeMike Frysinger2013-04-221-4/+5
|
* constify more stringsMike Frysinger2011-02-211-3/+3
|
* denest some atom explode logic and add support for arbitrary number of ↵Mike Frysinger2008-01-151-5/+7
| | | | version suffixes
* - update copyright headersv0.1.27Ned Ludd2007-05-241-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
|
* first pass at an atom compare func (needs polishing)Mike Frysinger2006-01-111-18/+33
|
* - added qatom and removed the need for the applets enumNed Ludd2005-12-111-0/+52