[paludis-commits] r4078 - in trunk: . paludis/repositories/e

peper at svn.pioto.org peper at svn.pioto.org
Sat Dec 15 19:25:11 UTC 2007


Author: peper
Date: 2007-12-15 19:25:10 +0000 (Sat, 15 Dec 2007)
New Revision: 4078

Modified:
   trunk/ChangeLog
   trunk/paludis/repositories/e/ebuild_id.cc
Log:
Don't check the EAPI if not necessary.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-12-15 15:54:15 UTC (rev 4077)
+++ trunk/ChangeLog	2007-12-15 19:25:10 UTC (rev 4078)
@@ -5,6 +5,11 @@
 only listed in SVN log. For a summary of what has changed between releases,
 see the NEWS file. This file is occasionally pruned to ChangeLog.old.bz2.
 
+2007-12-15 Piotr Jaroszyński
+
+	* paludis/repositories/e/ebuild_id.cc: Don't check the EAPI if not
+	necessary.
+
 2007-12-14 Stefan Kögl
 
 	* paludis/, python/, ruby/, src/clients/paludis/: Add glsa_file to

Modified: trunk/paludis/repositories/e/ebuild_id.cc
===================================================================
--- trunk/paludis/repositories/e/ebuild_id.cc	2007-12-15 15:54:15 UTC (rev 4077)
+++ trunk/paludis/repositories/e/ebuild_id.cc	2007-12-15 19:25:10 UTC (rev 4078)
@@ -780,12 +780,10 @@
 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



More information about the paludis-commits mailing list