[bitbake-devel] bb.utils.which is intend to locate regular file only as it is written in comment

Submitted by Vitaliy Kharin on July 8, 2014, 3:21 p.m.

Details

Message ID 1404832886-16550-1-git-send-email-vitaliy.kharin@lge.com
State New
Headers show

Commit Message

Vitaliy Kharin July 8, 2014, 3:21 p.m.
Signed-off-by: Vitaliy Kharin <vitaliy.kharin@lge.com>
---
 bitbake/lib/bb/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 0be45e1..c48b237 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -809,7 +809,7 @@  def which(path, item, direction = 0, history = False):
     for p in paths:
         next = os.path.join(p, item)
         hist.append(next)
-        if os.path.exists(next):
+        if os.path.isfile(next):
             if not os.path.isabs(next):
                 next = os.path.abspath(next)
             if history: