aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-12-15 19:25:10 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-12-15 19:25:10 +0000
commita274f41aec3b07ef02601c39e944147e96bacc3a (patch)
tree8db8eeabf2b9980da1c023aea1655d9b33613e29
parent117f9f2565afa9f4428271b297126c6aa0cbf87f (diff)
downloadpaludis-a274f41aec3b07ef02601c39e944147e96bacc3a.tar.gz
paludis-a274f41aec3b07ef02601c39e944147e96bacc3a.tar.xz
Don't check the EAPI if not necessary.
-rw-r--r--paludis/repositories/e/ebuild_id.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index eb72977..a77de43 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -780,12 +780,10 @@ namespace
bool
EbuildID::supports_action(const SupportsActionTestBase & b) const
{
- if (! eapi()->supported)
- return false;
-
SupportsActionQuery q;
b.accept(q);
- return q.result;
+
+ return q.result && eapi()->supported;
}
namespace