diff options
author | 2010-10-31 14:46:19 +0000 | |
---|---|---|
committer | 2010-10-31 14:46:19 +0000 | |
commit | 07a7abd7892f3e50e826fe05ccb27648e92c67ca (patch) | |
tree | 438fd175d524fd6a2fdd7970ddde39076010c582 | |
parent | 084345e8e3ef6ef81a620d929458c18e8acaf6a4 (diff) | |
download | paludis-07a7abd7892f3e50e826fe05ccb27648e92c67ca.tar.gz paludis-07a7abd7892f3e50e826fe05ccb27648e92c67ca.tar.xz |
filter::InstalledNotAtRoot
-rw-r--r-- | paludis/filter.cc | 5 | ||||
-rw-r--r-- | paludis/filter.hh | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/paludis/filter.cc b/paludis/filter.cc index ec0890e25..367fab4fa 100644 --- a/paludis/filter.cc +++ b/paludis/filter.cc @@ -449,6 +449,11 @@ filter::InstalledAtRoot::InstalledAtRoot(const FSPath & r) : { } +filter::InstalledNotAtRoot::InstalledNotAtRoot(const FSPath & r) : + Filter(std::make_shared<InstalledAtFilterHandler>(r, false)) +{ +} + filter::InstalledAtSlash::InstalledAtSlash() : Filter(std::make_shared<InstalledAtFilterHandler>(FSPath("/"), true)) { diff --git a/paludis/filter.hh b/paludis/filter.hh index 17b6004ea..adfa0a72f 100644 --- a/paludis/filter.hh +++ b/paludis/filter.hh @@ -171,6 +171,19 @@ namespace paludis }; /** + * A Filter which accepts only PackageID instances that are installed but + * not in a particular root. + * + * \ingroup g_selections + */ + class PALUDIS_VISIBLE InstalledNotAtRoot : + public Filter + { + public: + InstalledNotAtRoot(const FSPath &); + }; + + /** * A Filter which accepts only PackageID instances that are installed to * the / fs. * |