aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-08-17 19:58:50 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-08-17 19:58:50 +0000
commit3935d8b4c9798e50f6bed8bbfeab4d3b945ee420 (patch)
treeebad64577402a8e1918376dfcdb4693f59f1c511
parentbce62404a274d2d9797db913c33d6c1d2c388631 (diff)
downloadpaludis-3935d8b4c9798e50f6bed8bbfeab4d3b945ee420.tar.gz
paludis-3935d8b4c9798e50f6bed8bbfeab4d3b945ee420.tar.xz
Allow overriding
-rw-r--r--paludis/repositories/e/e_repository.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 1091752..612bca3 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -65,6 +65,7 @@
#include <paludis/util/mutex.hh>
#include <paludis/util/sequence.hh>
#include <paludis/util/set.hh>
+#include <paludis/util/system.hh>
#include <paludis/util/tr1_functional.hh>
#include <paludis/util/visitor-impl.hh>
#include <paludis/util/dir_iterator.hh>
@@ -1056,11 +1057,13 @@ ERepository::check_qa(
Lock lock(libqahandle.mutex);
if (0 == libqahandle.handle)
- libqahandle.handle = dlopen("libpaludiserepositoryqa.so", RTLD_NOW | RTLD_GLOBAL);
+ libqahandle.handle = dlopen(getenv_with_default("PALUDIS_E_REPOSITORY_QA_SO",
+ "libpaludiserepositoryqa.so").c_str(), RTLD_NOW | RTLD_GLOBAL);
if (0 == libqahandle.handle)
{
reporter.message(QAMessage(dir, qaml_severe, "check_qa", "Got error '" + stringify(dlerror) +
- "' when dlopen(libpaludisqa.so)"));
+ "' when dlopen(" + getenv_with_default("PALUDIS_E_REPOSITORY_QA_SO",
+ "libpaludiserepositoryqa.so") + ")"));
return;
}