aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-10-31 15:11:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-10-31 15:11:28 +0000
commitfc026ef00a65518b590866ce4c06f6dfffbb2583 (patch)
treee291d7ea6a11233e50948f4fbc47b6f5cd3287bd /src/clients/cave
parent07a7abd7892f3e50e826fe05ccb27648e92c67ca (diff)
downloadpaludis-fc026ef00a65518b590866ce4c06f6dfffbb2583.tar.gz
paludis-fc026ef00a65518b590866ce4c06f6dfffbb2583.tar.xz
Don't assume slash is /
Fixes: ticket:995
Diffstat (limited to 'src/clients/cave')
-rw-r--r--src/clients/cave/select_format_for_spec.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/select_format_for_spec.cc b/src/clients/cave/select_format_for_spec.cc
index 62cbfa101..94be4a937 100644
--- a/src/clients/cave/select_format_for_spec.cc
+++ b/src/clients/cave/select_format_for_spec.cc
@@ -25,6 +25,7 @@
#include <paludis/filter.hh>
#include <paludis/filtered_generator.hh>
#include <paludis/generator.hh>
+#include <paludis/metadata_key.hh>
using namespace paludis;
using namespace cave;
@@ -39,7 +40,7 @@ paludis::cave::select_format_for_spec(
const T_ & if_unavailable
)
{
- if (! (*env)[selection::SomeArbitraryVersion(generator::Matches(spec, { }) | filter::InstalledAtSlash())]->empty())
+ if (! (*env)[selection::SomeArbitraryVersion(generator::Matches(spec, { }) | filter::InstalledAtRoot(env->system_root_key()->value()))]->empty())
return if_installed;
if (! (*env)[selection::SomeArbitraryVersion(generator::Matches(spec, { }) | filter::SupportsAction<InstallAction>()
| filter::NotMasked())]->empty())