check that .pc files have access(R_OK) before trying to read them.
authorPhil Blundell <philb@gnu.org>
Sat, 24 Jul 2004 15:17:53 +0000 (15:17 +0000)
committerPhil Blundell <philb@gnu.org>
Sat, 24 Jul 2004 15:17:53 +0000 (15:17 +0000)
BKrev: 41027da1mXX2z45bFOeGReY11VdbWw

classes/package.oeclass

index 207269f..0322818 100644 (file)
@@ -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()