aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2008-02-03 17:26:39 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2008-02-03 17:26:39 +0000
commit600a2ca4c7138d71f53f40225eea0dcbcd8259ba (patch)
tree995219b88c1202f28d24e931e2a3a38ed45a434b
parent63c8baae4819e82d0c03e5524b032d228dbb3487 (diff)
downloadpaludis-600a2ca4c7138d71f53f40225eea0dcbcd8259ba.tar.gz
paludis-600a2ca4c7138d71f53f40225eea0dcbcd8259ba.tar.xz
Warn if a Python hook is found but cannot be used.
-rw-r--r--paludis/hooker.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/hooker.cc b/paludis/hooker.cc
index 14355df..4b4aa42 100644
--- a/paludis/hooker.cc
+++ b/paludis/hooker.cc
@@ -551,6 +551,18 @@ Hooker::perform_hook(const Hook & hook) const
e->basename(), ".py")))->second->file_name()) + "'");
}
}
+#elif ENABLE_PYTHON
+ if (is_file_with_extension(*e, ".py", IsFileWithOptions()))
+ {
+ Log::get_instance()->message(ll_warning, lc_context) << "Ignoring hook '" << *e << "' because"
+ << " Paludis was built using a dev-libs/boost version older than 1.34.0.";
+ }
+#else
+ if (is_file_with_extension(*e, ".py", IsFileWithOptions()))
+ {
+ Log::get_instance()->message(ll_warning, lc_context) << "Ignoring hook '" << *e << "' because"
+ << " Paludis was built without Python support (also needs >=dev-libs/boost-1.34.0).";
+ }
#endif
}
}