From a5ade9dd96c1cc44fe2b0cdccddabc63407eff30 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 29 Aug 2009 14:42:42 -0700 Subject: base.bbclass: Pass in PATH to popen. On Mac OSX its not able to find md5sum if path is not passed to os.popen shell. Signed-off-by: Khem Raj --- classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/base.bbclass b/classes/base.bbclass index 97ccf5dfc3..d29ba4bfcf 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -84,7 +84,7 @@ def base_chk_file(parser, pn, pv, src_uri, localpath, data): # call md5(sum) and shasum try: - md5pipe = os.popen('md5sum ' + localpath) + md5pipe = os.popen('PATH=%s md5sum %s' % (bb.data.getVar('PATH', data, True), localpath)) md5data = (md5pipe.readline().split() or [ "" ])[0] md5pipe.close() except OSError: -- cgit v1.2.3