aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-25 05:35:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-25 05:35:51 +0000
commitd6b33b481e6a204deea07256defd7bd28758b608 (patch)
treecb0d7babd21cd700b737f0fc76e47059ac97bde8
parent96ef3702a1dcf0f7b2e3ae1e6f65a7178d4ee2fd (diff)
downloadpaludis-d6b33b481e6a204deea07256defd7bd28758b608.tar.gz
paludis-d6b33b481e6a204deea07256defd7bd28758b608.tar.xz
Saner handling of overlays
-rw-r--r--paludis/repositories/e/qa/qa_controller.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/repositories/e/qa/qa_controller.cc b/paludis/repositories/e/qa/qa_controller.cc
index be82f10..5596284 100644
--- a/paludis/repositories/e/qa/qa_controller.cc
+++ b/paludis/repositories/e/qa/qa_controller.cc
@@ -250,6 +250,9 @@ QAController::run()
bool
QAController::_under_base_dir(const FSEntry & d) const
{
+ if (! d.exists())
+ return false;
+
FSEntry dd(d.realpath()), b("/");
while (dd != b)
{
@@ -264,6 +267,9 @@ QAController::_under_base_dir(const FSEntry & d) const
bool
QAController::_above_base_dir(const FSEntry & d) const
{
+ if (! d.exists())
+ return false;
+
FSEntry dd(_imp->base_dir), b("/");
while (dd != b)
{