aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-30 18:23:08 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-30 18:23:08 +0000
commita5f567e056335d62f526f8caf4e2b2979921677e (patch)
tree8f07d9db03a4bda5f13f427c2cfbf5af849cb5f6
parentca3f58688e98b472e2ea306933f4a4a0fd7cf1ef (diff)
downloadpaludis-a5f567e056335d62f526f8caf4e2b2979921677e.tar.gz
paludis-a5f567e056335d62f526f8caf4e2b2979921677e.tar.xz
Add a change_package_database method to Environment so that subclasses can implement package database switching
-rw-r--r--paludis/environment.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/paludis/environment.hh b/paludis/environment.hh
index 649e38b..1461490 100644
--- a/paludis/environment.hh
+++ b/paludis/environment.hh
@@ -112,6 +112,14 @@ namespace paludis
return DepAtom::Pointer(0);
}
+ /**
+ * Change our package database.
+ */
+ void change_package_database(PackageDatabase::Pointer _p)
+ {
+ _package_database = _p;
+ }
+
public:
/**
* Does the user want the specified USE flag set for a