Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | qfile: fix matching of files | 2018-04-15 | 1 | -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 copyrights | 2018-04-05 | 1 | -1/+1 | |
| | |||||
* | qfile_main: use q_vdb_foreach_pkg_sorted, bug #607498 | 2018-04-03 | 1 | -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 bit | 2016-12-28 | 1 | -3/+3 | |
| | |||||
* | usage: add an extended text sectionv0.63 | 2016-03-27 | 1 | -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 option | 2016-02-04 | 1 | -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 statements | 2015-12-16 | 1 | -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 getline | 2015-11-27 | 1 | -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 styles | 2014-03-10 | 1 | -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 buffers | 2014-03-10 | 1 | -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 git | 2014-03-09 | 1 | -4/+2 | |
| | |||||
* | qfile: add a --basename option so people can match just the base name of a ↵ | 2013-04-29 | 1 | -3/+10 | |
| | | | | path #441696 by Samuli Suominen | ||||
* | qfile: re-order options and clarify --exclude/--exact are only for --orphans ↵ | 2012-11-10 | 1 | -12/+12 | |
| | | | | #441696 | ||||
* | qfile: fix handling of paths relative to pwd #362643 by Jeremy Olexa | 2012-10-28 | 1 | -57/+55 | |
| | |||||
* | qfile: push more of qfile_args_t into qfile_opt_state as the former is less ↵ | 2012-10-28 | 1 | -119/+106 | |
| | | | | volatile | ||||
* | qfile: convert to libq/vdb | 2012-10-28 | 1 | -300/+225 | |
| | |||||
* | Fix compiler warnings for signedness.v0.11 | 2012-08-13 | 1 | -4/+4 | |
| | |||||
* | kill useless set of paren | 2012-01-16 | 1 | -3/+3 | |
| | |||||
* | push down "exact" from global scope to per-applet state | 2011-12-18 | 1 | -8/+9 | |
| | |||||
* | delete unused variable | 2011-10-02 | 1 | -4/+2 | |
| | |||||
* | fix uninitialized warning after previous commit | 2011-03-02 | 1 | -3/+3 | |
| | |||||
* | make sure ROOT works properly | 2011-03-01 | 1 | -8/+9 | |
| | |||||
* | convert many fgets() to getline(), clean up ARRAY_SIZE usage, and some other ↵ | 2011-02-21 | 1 | -17/+26 | |
| | | | | random fixes | ||||
* | constify more strings | 2011-02-21 | 1 | -3/+3 | |
| | |||||
* | create our own local basename() to avoid portability issues #323889 by ↵ | 2010-07-19 | 1 | -10/+10 | |
| | | | | Naohiro Aota | ||||
* | - update headers | 2010-04-07 | 1 | -5/+5 | |
| | |||||
* | optimize qfile() a bit to avoid memory allocation and copying and re-use ↵ | 2010-01-16 | 1 | -85/+76 | |
| | | | | existing q functions | ||||
* | only warn and avoid exiting if we find a file in the pkg db #301221 by ↵ | 2010-01-16 | 1 | -4/+6 | |
| | | | | Petteri Räty | ||||
* | check the return value of realpath() instead of relying on errno all the time | 2010-01-13 | 1 | -14/+6 | |
| | |||||
* | check return value of fgets() | 2010-01-13 | 1 | -3/+4 | |
| | |||||
* | introduce and use xchdir() | 2010-01-13 | 1 | -16/+10 | |
| | |||||
* | - New option. -S/Display installed packages with slots | 2009-10-18 | 1 | -6/+24 | |
| | |||||
* | - update copyright headersv0.1.27 | 2007-05-24 | 1 | -5/+5 | |
| | |||||
* | - whitespace cleanups | 2007-05-23 | 1 | -3/+2 | |
| | |||||
* | - Bug #173527 - -Os compile time warnings | 2007-04-06 | 1 | -9/+7 | |
| | |||||
* | - more qfile -x updates from TGL. Bug 160735 | 2007-01-13 | 1 | -11/+18 | |
| | |||||
* | - qfile -x/--exclude option. TGL bug 160735 | 2007-01-12 | 1 | -8/+69 | |
| | |||||
* | - make check should not fail. bug 160767 | 2007-01-07 | 1 | -19/+13 | |
| | |||||
* | - qfile -f file support. TGL bug #158829 | 2007-01-07 | 1 | -106/+302 | |
| | |||||
* | // -> /* */ | 2006-12-25 | 1 | -33/+39 | |
| | |||||
* | - style fixups | 2006-12-01 | 1 | -11/+11 | |
| | |||||
* | fix style/whitespace | 2006-11-09 | 1 | -20/+22 | |
| | |||||
* | - updated qfile ROOT and manpage handling.. TGL bug #142217 | 2006-08-21 | 1 | -55/+170 | |
| | |||||
* | - Use xmalloc vs malloc for error checking. err() is a function that would ↵ | 2006-07-19 | 1 | -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 ↵ | 2006-07-18 | 1 | -11/+11 | |
| | | | | 140019 degrenier@easyconnect | ||||
* | - qfile new option to find orphan files bug 140019 | 2006-07-18 | 1 | -17/+50 | |
| | |||||
* | - qfile optimizations. bug #139825 | 2006-07-18 | 1 | -74/+68 | |
| | |||||
* | - update qfile behavior with symlinks. Bug #130004 TGL degrenier@easyconnect | 2006-07-09 | 1 | -37/+138 | |
| | |||||
* | use _Q_PATH_MAX instead of PATH_MAX | 2006-05-14 | 1 | -3/+3 | |
| | |||||
* | on second thought, dont check the return value of realpath() as it is ok if ↵v0.1.17 | 2006-05-13 | 1 | -3/+7 | |
| | | | | we fall through |