aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* qfile: fix matching of filesFabian Groffen2018-04-151-39/+55
| | | | | | | A bit overenthusiastic check for files in the current directory caused weird directory prefixes to be ignored. Bug: https://bugs.gentoo.org/652720
* update copyrightsFabian Groffen2018-04-051-1/+1
|
* qfile_main: use q_vdb_foreach_pkg_sorted, bug #607498Fabian Groffen2018-04-031-1/+1
| | | | | | | | For consistency with almost all other output, use sorted output variant for qfile as well. The little sorting/memory overhead due to this is probably ok, given how much it is used already. Bug: https://bugs.gentoo.org/607498
* drop _q_static and standardize func prototypes a bitMike Frysinger2016-12-281-3/+3
|
* 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.
* qfile: drop the --from optionMike Frysinger2016-02-041-103/+20
| | | | | | | | | | | | | | Apparently the --from option is slightly buggy. Rather than debug/fix it, let's punt the option entirely. The same behavior can be obtained with the xargs program: $ qfile -f ./files.txt -m 100 $ xargs -a ./files.txt -L 100 qfile The xargs util also has way more fine grained control over the format of the file. No other q applet has this option either. URL: https://bugs.gentoo.org/573574 Reported-by: Agostino Sarubbo <ago@gentoo.org>
* 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.
* use the return value of getlineMike Frysinger2015-11-271-4/+4
| | | | | | This allows us to avoid calling strlen to get a value getline already calculated. We can also pass this value on to rmspace to let it trim space for us.
* vdb: add a q_vdb_pkg_eat helper to unify various call stylesMike Frysinger2014-03-101-2/+2
| | | | | | | | | 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-3/+6
| | | | | | | | | | | | | | | 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
|
* qfile: add a --basename option so people can match just the base name of a ↵Mike Frysinger2013-04-291-3/+10
| | | | path #441696 by Samuli Suominen
* qfile: re-order options and clarify --exclude/--exact are only for --orphans ↵Mike Frysinger2012-11-101-12/+12
| | | | #441696
* qfile: fix handling of paths relative to pwd #362643 by Jeremy OlexaMike Frysinger2012-10-281-57/+55
|
* qfile: push more of qfile_args_t into qfile_opt_state as the former is less ↵Mike Frysinger2012-10-281-119/+106
| | | | volatile
* qfile: convert to libq/vdbMike Frysinger2012-10-281-300/+225
|
* Fix compiler warnings for signedness.v0.11Robin H. Johnson2012-08-131-4/+4
|
* kill useless set of parenMike Frysinger2012-01-161-3/+3
|
* push down "exact" from global scope to per-applet stateMike Frysinger2011-12-181-8/+9
|
* delete unused variableMike Frysinger2011-10-021-4/+2
|
* fix uninitialized warning after previous commitMike Frysinger2011-03-021-3/+3
|
* make sure ROOT works properlyMike Frysinger2011-03-011-8/+9
|
* convert many fgets() to getline(), clean up ARRAY_SIZE usage, and some other ↵Mike Frysinger2011-02-211-17/+26
| | | | random fixes
* constify more stringsMike Frysinger2011-02-211-3/+3
|
* create our own local basename() to avoid portability issues #323889 by ↵Mike Frysinger2010-07-191-10/+10
| | | | Naohiro Aota
* - update headersNed Ludd2010-04-071-5/+5
|
* optimize qfile() a bit to avoid memory allocation and copying and re-use ↵Mike Frysinger2010-01-161-85/+76
| | | | existing q functions
* only warn and avoid exiting if we find a file in the pkg db #301221 by ↵Mike Frysinger2010-01-161-4/+6
| | | | Petteri Räty
* check the return value of realpath() instead of relying on errno all the timeMike Frysinger2010-01-131-14/+6
|
* check return value of fgets()Mike Frysinger2010-01-131-3/+4
|
* introduce and use xchdir()Mike Frysinger2010-01-131-16/+10
|
* - New option. -S/Display installed packages with slotsNed Ludd2009-10-181-6/+24
|
* - update copyright headersv0.1.27Ned Ludd2007-05-241-5/+5
|
* - whitespace cleanupsNed Ludd2007-05-231-3/+2
|
* - Bug #173527 - -Os compile time warningsNed Ludd2007-04-061-9/+7
|
* - more qfile -x updates from TGL. Bug 160735Ned Ludd2007-01-131-11/+18
|
* - qfile -x/--exclude option. TGL bug 160735Ned Ludd2007-01-121-8/+69
|
* - make check should not fail. bug 160767Ned Ludd2007-01-071-19/+13
|
* - qfile -f file support. TGL bug #158829Ned Ludd2007-01-071-106/+302
|
* // -> /* */Mike Frysinger2006-12-251-33/+39
|
* - style fixupsNed Ludd2006-12-011-11/+11
|
* fix style/whitespaceMike Frysinger2006-11-091-20/+22
|
* - updated qfile ROOT and manpage handling.. TGL bug #142217Ned Ludd2006-08-211-55/+170
|
* - Use xmalloc vs malloc for error checking. err() is a function that would ↵Ned Ludd2006-07-191-10/+10
| | | | die thus it can not really be called two times in a row followed by a continue; changed those to warn()
* - fix up segv in initial orphan handling code. attachment#92150 from bug ↵Ned Ludd2006-07-181-11/+11
| | | | 140019 degrenier@easyconnect
* - qfile new option to find orphan files bug 140019Ned Ludd2006-07-181-17/+50
|
* - qfile optimizations. bug #139825Ned Ludd2006-07-181-74/+68
|
* - update qfile behavior with symlinks. Bug #130004 TGL degrenier@easyconnectNed Ludd2006-07-091-37/+138
|
* use _Q_PATH_MAX instead of PATH_MAXMike Frysinger2006-05-141-3/+3
|
* on second thought, dont check the return value of realpath() as it is ok if ↵v0.1.17Mike Frysinger2006-05-131-3/+7
| | | | we fall through