aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destination_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/destination_utils.cc')
-rw-r--r--paludis/resolver/destination_utils.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/paludis/resolver/destination_utils.cc b/paludis/resolver/destination_utils.cc
index 3abba3426..7097e8784 100644
--- a/paludis/resolver/destination_utils.cc
+++ b/paludis/resolver/destination_utils.cc
@@ -83,15 +83,18 @@ namespace
}
FilteredGenerator
-paludis::resolver::destination_filtered_generator(const DestinationType t, const Generator & g)
+paludis::resolver::destination_filtered_generator(
+ const Environment * const env,
+ const DestinationType t,
+ const Generator & g)
{
switch (t)
{
case dt_install_to_slash:
- return g | filter::InstalledAtSlash();
+ return g | filter::InstalledAtRoot(env->system_root_key()->value());
case dt_install_to_chroot:
- return g | filter::InstalledAtNotSlash();
+ return g | filter::InstalledNotAtRoot(env->system_root_key()->value());
case dt_create_binary:
return g & BinaryDestinationGenerator();