aboutsummaryrefslogtreecommitdiff
path: root/paludis/partitioning.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/partitioning.cc')
-rw-r--r--paludis/partitioning.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/paludis/partitioning.cc b/paludis/partitioning.cc
index 791c655d6..afb3a0d06 100644
--- a/paludis/partitioning.cc
+++ b/paludis/partitioning.cc
@@ -62,3 +62,13 @@ Partitioning::classify(const FSPath & path) const
return PartName("");
}
+bool
+Partitioning::is_partitioned(const FSPath & path) const
+{
+ for (auto part = _imp->parts.rbegin(), end = _imp->parts.rend();
+ part != end; ++part)
+ if (part->first.starts_with(path) && ! part->second.value().empty())
+ return true;
+ return false;
+}
+