aboutsummaryrefslogtreecommitdiff
path: root/python/environment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/environment.cc')
-rw-r--r--python/environment.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/environment.cc b/python/environment.cc
index 3491dcee6..f776ea6fb 100644
--- a/python/environment.cc
+++ b/python/environment.cc
@@ -406,6 +406,16 @@ class EnvironmentImplementationWrapper :
throw PythonMethodNotImplemented("EnvironmentImplementation", "preferred_root_key");
}
+ virtual const std::shared_ptr<const MetadataValueKey<FSPath> > system_root_key() const
+ {
+ Lock l(get_mutex());
+
+ if (bp::override f = get_override("system_root_key"))
+ return f();
+ else
+ throw PythonMethodNotImplemented("EnvironmentImplementation", "system_root_key");
+ }
+
virtual const Tribool want_choice_enabled(
const std::shared_ptr<const PackageID> &,
const std::shared_ptr<const Choice> &,