From cc7310404c661e4896f6830b2234e1ec9dd69c70 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sat, 24 Jul 2004 15:17:53 +0000 Subject: check that .pc files have access(R_OK) before trying to read them. BKrev: 41027da1mXX2z45bFOeGReY11VdbWw --- classes/package.oeclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'classes') 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() -- cgit v1.2.3