From dd42a8655f7f60d538f1cc480c530ebfde339bdf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Apr 2007 17:20:00 +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/branches/2.1.2/; revision=6359 --- pym/portage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index 9ccd52c11..b61b4e22f 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1621,6 +1621,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