summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 072262a31..50ef2cc1a 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1627,6 +1627,10 @@ class config:
myre = re.compile('^[A-Z]+$')
null_byte = "\0"
for filename in listdir(infodir,filesonly=1,EmptyOnError=1):
+ if filename == "FEATURES":
+ # FEATURES from the build host shouldn't be interpreted as
+ # FEATURES on the client system.
+ continue
if myre.match(filename):
try:
file_path = os.path.join(infodir, filename)