aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-10-31 14:46:19 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-10-31 14:46:19 +0000
commit07a7abd7892f3e50e826fe05ccb27648e92c67ca (patch)
tree438fd175d524fd6a2fdd7970ddde39076010c582
parent084345e8e3ef6ef81a620d929458c18e8acaf6a4 (diff)
downloadpaludis-07a7abd7892f3e50e826fe05ccb27648e92c67ca.tar.gz
paludis-07a7abd7892f3e50e826fe05ccb27648e92c67ca.tar.xz
filter::InstalledNotAtRoot
-rw-r--r--paludis/filter.cc5
-rw-r--r--paludis/filter.hh13
2 files changed, 18 insertions, 0 deletions
diff --git a/paludis/filter.cc b/paludis/filter.cc
index ec0890e..367fab4 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 17b6004..adfa0a7 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.
*