aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/select_format_for_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/select_format_for_spec.cc')
-rw-r--r--src/clients/cave/select_format_for_spec.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clients/cave/select_format_for_spec.cc b/src/clients/cave/select_format_for_spec.cc
index 8de7dbb..62cbfa1 100644
--- a/src/clients/cave/select_format_for_spec.cc
+++ b/src/clients/cave/select_format_for_spec.cc
@@ -21,7 +21,6 @@
#include "format_user_config.hh"
#include <paludis/environment.hh>
#include <paludis/util/sequence.hh>
-#include <paludis/util/fs_entry.hh>
#include <paludis/selection.hh>
#include <paludis/filter.hh>
#include <paludis/filtered_generator.hh>
@@ -40,7 +39,7 @@ paludis::cave::select_format_for_spec(
const T_ & if_unavailable
)
{
- if (! (*env)[selection::SomeArbitraryVersion(generator::Matches(spec, { }) | filter::InstalledAtRoot(FSEntry("/")))]->empty())
+ if (! (*env)[selection::SomeArbitraryVersion(generator::Matches(spec, { }) | filter::InstalledAtSlash())]->empty())
return if_installed;
if (! (*env)[selection::SomeArbitraryVersion(generator::Matches(spec, { }) | filter::SupportsAction<InstallAction>()
| filter::NotMasked())]->empty())