diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-28 14:56:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-28 14:56:47 +0000 |
commit | 393ac699c54436e07ce023b9c631fffe5f5fb9fb (patch) | |
tree | 3edb4ceaf078bd1acadeff27a49bbc1f44fd7da1 | |
parent | a731c7d79183644e1bd1566b3677db66a8ca1b4e (diff) | |
download | portage-393ac699c54436e07ce023b9c631fffe5f5fb9fb.tar.gz portage-393ac699c54436e07ce023b9c631fffe5f5fb9fb.tar.bz2 portage-393ac699c54436e07ce023b9c631fffe5f5fb9fb.zip |
Show the EBUILD_FORCE_TEST "Forcing test" message
even when "test" is not in IUSE.
svn path=/main/trunk/; revision=9065
-rw-r--r-- | pym/portage/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 2c826a58a..d79771560 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2324,10 +2324,13 @@ class config(object): self.features = list(sorted(set( self.configlist[-1].get("FEATURES","").split()))) self["FEATURES"] = " ".join(self.features) - if "test" in self.features and "test" in iuse: - ebuild_force_test = self.get("EBUILD_FORCE_TEST") == "1" - if ebuild_force_test and self.get("EBUILD_PHASE") == "test": + ebuild_force_test = self.get("EBUILD_FORCE_TEST") == "1" + if ebuild_force_test and \ + self.get("EBUILD_PHASE") == "test" and \ + not hasattr(self, "_ebuild_force_test_msg_shown"): + self._ebuild_force_test_msg_shown = True writemsg("Forcing test.\n", noiselevel=-1) + if "test" in self.features and "test" in iuse: if "test" in self.usemask and not ebuild_force_test: # "test" is in IUSE and USE=test is masked, so execution # of src_test() probably is not reliable. Therefore, |