From b354fcc03113318196f9e6146da32f44dd23d826 Mon Sep 17 00:00:00 2001 From: Vitaliy Kharin Date: Thu, 3 Jul 2014 19:16:05 +0400 Subject: [PATCH] Fixed checking of regular file bb.utils.which is intend to locate regular file only as it is written in comment --- lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/utils.py b/lib/bb/utils.py index f62709bed5..bc579d0990 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -806,7 +806,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: