summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-21 09:35:25 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-21 09:39:30 -0800
commit99f75e8c5aa1905702195ba5578394e14cbc6668 (patch)
tree0dcfd36dd201f12ea7a2f835b520213f68121b33
parent8a9e0948556a7a239730c7785590624531e0132e (diff)
downloadportage-99f75e8c5aa1905702195ba5578394e14cbc6668.tar.gz
portage-99f75e8c5aa1905702195ba5578394e14cbc6668.tar.bz2
portage-99f75e8c5aa1905702195ba5578394e14cbc6668.zip
Display relevant FEATURES before setup phase
Thanks to Christian Ruppert <idl0r@gentoo.org> for the suggestion.
-rw-r--r--pym/_emerge/EbuildPhase.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildPhase.py b/pym/_emerge/EbuildPhase.py
index 2135c62b2..6197d81d6 100644
--- a/pym/_emerge/EbuildPhase.py
+++ b/pym/_emerge/EbuildPhase.py
@@ -29,6 +29,13 @@ class EbuildPhase(CompositeTask):
__slots__ = ("actionmap", "phase", "settings")
+ # FEATURES displayed prior to setup phase
+ _features_display = ("ccache", "distcc", "fakeroot",
+ "installsources", "keeptemp", "keepwork", "nostrip",
+ "preserve-libs", "sandbox", "selinux", "sesandbox",
+ "splitdebug", "suidctl", "test", "userpriv",
+ "usersandbox")
+
def _start(self):
need_builddir = self.phase not in EbuildProcess._phases_without_builddir
@@ -70,7 +77,14 @@ class EbuildPhase(CompositeTask):
msg.append("Repository: %s" % self.settings['PORTAGE_REPO_NAME'])
if maint_str:
msg.append("Maintainer: %s" % maint_str)
- msg.append("USE: %s" % use)
+ msg.append("USE: %s" % use)
+ relevant_features = []
+ enabled_features = self.settings.features
+ for x in self._features_display:
+ if x in enabled_features:
+ relevant_features.append(x)
+ if relevant_features:
+ msg.append("FEATURES: %s" % " ".join(relevant_features))
self._elog('einfo', msg)
if self.phase == 'package':