Import patch handler.patch
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 17 Apr 2004 11:00:47 +0000 (11:00 +0000)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 17 Apr 2004 11:00:47 +0000 (11:00 +0000)
bin/oe/parse/OEHandler.py

index 7b38980..8b57830 100644 (file)
@@ -74,8 +74,10 @@ def handle(fn, d = {}, include = 0):
                        oepath += voepath.split(":")
                for p in oepath:
                        p = data.expand(p, d)
-                       if os.access(os.path.join(p, fn), os.R_OK):
-                               f = open(os.path.join(p, fn), 'r')
+                       j = os.path.join(p, fn)
+                       if os.access(j, os.R_OK):
+                               f = open(j, 'r')
+                               break
                if f is None:
                        raise IOError("file not found")
        else: