aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-25 22:20:23 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-25 22:20:23 +0000
commitd18402718e4c0d08c7f214490a17ad84322c9b25 (patch)
tree33b908430aba28698a4260e06ea70a7d2193d143
parent37d955ee557e9ceac33643f64ea98fafeedb7d55 (diff)
downloadpaludis-d18402718e4c0d08c7f214490a17ad84322c9b25.tar.gz
paludis-d18402718e4c0d08c7f214490a17ad84322c9b25.tar.xz
PALUDIS_DISTRIBUTION can now be used to override the distribution
-rw-r--r--paludis/environment_implementation.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/environment_implementation.cc b/paludis/environment_implementation.cc
index 3948ccb..1810c6e 100644
--- a/paludis/environment_implementation.cc
+++ b/paludis/environment_implementation.cc
@@ -167,7 +167,8 @@ EnvironmentImplementation::query_use(const UseFlagName & f, const PackageID & e)
std::string
EnvironmentImplementation::default_distribution() const
{
- return DEFAULT_DISTRIBUTION;
+ static const std::string result(getenv_with_default("PALUDIS_DISTRIBUTION", DEFAULT_DISTRIBUTION));
+ return result;
}
tr1::shared_ptr<const SetNameSet>