From: Phil Blundell Date: Sat, 24 Jul 2004 15:17:53 +0000 (+0000) Subject: check that .pc files have access(R_OK) before trying to read them. X-Git-Tag: Release-2010-05/1~18064 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc7310404c661e4896f6830b2234e1ec9dd69c70;p=openembedded.git check that .pc files have access(R_OK) before trying to read them. BKrev: 41027da1mXX2z45bFOeGReY11VdbWw --- diff --git a/classes/package.oeclass b/classes/package.oeclass index 207269f80b..03228188ed 100644 --- a/classes/package.oeclass +++ b/classes/package.oeclass @@ -431,6 +431,8 @@ python package_do_pkgconfig () { name = m.group(1) pkgconfig_provided[pkg].append(name) path = os.path.join(root, file) + if not os.access(path, os.R_OK): + continue f = open(path, 'r') lines = f.readlines() f.close()