From dd321817da58a22f50bb625d3812399261e4549c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Apr 2007 17:18:22 +0000 Subject: [PATCH] Don't load FEATURES in load_infodir() because FEATURES from the build host shouldn't be interpreted asFEATURES on the client system. Thanks to Thanks to Chri svn path=/main/trunk/; revision=6358 --- pym/portage/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.26.2