diff options
author | Daniel Burrows <dburrows@debian.org> | 2008-10-06 20:53:59 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2008-10-06 20:53:59 -0700 |
commit | caa9693207e362cddb08085d987ce85982e381d5 (patch) | |
tree | dc79c62e52eda28795b8c756ac732187bd1dace9 /src/pkg_tree.h | |
parent | 5cfb2cd308b677f1cca32285e5f3fa922450fcc5 (diff) | |
download | aptitude-caa9693207e362cddb08085d987ce85982e381d5.tar.gz |
Switch everything over to the new search code.
This loses a little functionality in some places. Searches that go
item-by-item (e.g., curses "/") are broken for ?term matchers (and
hence also bare strings), and searches that return string groups
(e.g., "aptitude search" with a format pattern containing substring
IDs, or the "pattern" grouping policy) don't work. But other than
that, everything should work.
Diffstat (limited to 'src/pkg_tree.h')
-rw-r--r-- | src/pkg_tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg_tree.h b/src/pkg_tree.h index d2f105d9..03d40618 100644 --- a/src/pkg_tree.h +++ b/src/pkg_tree.h @@ -26,6 +26,8 @@ #include <apt-pkg/pkgcache.h> +#include <generic/apt/matching/pattern.h> + /** \brief Uses the cwidget::widgets::tree classes to display a tree containing packages * * @@ -55,7 +57,7 @@ class pkg_tree:public apt_undo_tree std::string groupingstr; pkg_sortpolicy *sorting; - aptitude::matching::pkg_matcher *limit; + cwidget::util::ref_ptr<aptitude::matching::pattern> limit; std::wstring limitstr; // Defines the limits on the display (what packages will be allowed // to be displayed) This could be a grouping policy, but hardcoding the |