diff options
author | Phil Blundell <philb@gnu.org> | 2004-07-24 15:17:53 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-07-24 15:17:53 +0000 |
commit | cc7310404c661e4896f6830b2234e1ec9dd69c70 (patch) | |
tree | aafc3b2a088bfab5f56b170f2a688207adccb34b /classes/package.oeclass | |
parent | feb4f27b5ef8575b110a68fa8ff7c394d3151cf8 (diff) |
check that .pc files have access(R_OK) before trying to read them.
BKrev: 41027da1mXX2z45bFOeGReY11VdbWw
Diffstat (limited to 'classes/package.oeclass')
-rw-r--r-- | classes/package.oeclass | 2 |
1 files changed, 2 insertions, 0 deletions
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() |