~tfkyle/+junk/tfplib

Viewing all changes in revision 299.

  • Committer: kyle
  • Date: 2013-04-14 08:51:48 UTC
  • Revision ID: svn-v4:da0edab0-88f6-0310-9e9e-8a56e1f71462:tfplib/trunk:1090
* tfplib/scripts/edisp: use python2 instead of python
* tfplib.fileutils.Searcher:
        * Handle include lines in ld.so.conf (TODO: might need to ignore them on non-modern-linux systems if it's linux/glibc/binutils specific)
        * Be a bit saner with cache entries (previously if you used Abs with cache=True or AbsAll with cache=True and didn't iterate over all the results in the future you wouldn't get any new entries)
                * Cache entries from ldconfig don't have .done set currently so iterating over AbsAll will have to check each path referenced in `sections` again before StopIteration'ing.
                * It might still be somewhat suboptimal, if you don't finish iterating on the next run after yielding the cached entries it will still check to see if the file exists in each path referenced by `sections` that isn't cached. Keeping a set of directories/paths checked might make sense.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: