diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-08-29 14:42:42 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-08-30 15:02:12 -0700 |
commit | e6bdc929a0281e3bc5d69c099d37bf4d1f2bae23 (patch) | |
tree | 992f9e25cc56d729700e470f40f3aa4ce5a3dd23 /classes | |
parent | 1d32651d78dfed06579231a6ff6b63e2b79d59cf (diff) |
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 <raj.khem@gmail.com>
Acked-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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: |