diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index c697f4744f..c3bea447c1 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -479,14 +479,7 @@ class Fetch(object): | |||
479 | verify_md5sum = staticmethod(verify_md5sum) | 479 | verify_md5sum = staticmethod(verify_md5sum) |
480 | 480 | ||
481 | def write_md5sum(url, ud, d): | 481 | def write_md5sum(url, ud, d): |
482 | if bb.which(data.getVar('PATH', d), 'md5sum'): | 482 | md5data = bb.utils.md5_file(ud.localpath) |
483 | try: | ||
484 | md5pipe = os.popen('md5sum ' + ud.localpath) | ||
485 | md5data = (md5pipe.readline().split() or [ "" ])[0] | ||
486 | md5pipe.close() | ||
487 | except OSError: | ||
488 | md5data = "" | ||
489 | |||
490 | # verify the md5sum | 483 | # verify the md5sum |
491 | if not Fetch.verify_md5sum(ud, md5data): | 484 | if not Fetch.verify_md5sum(ud, md5data): |
492 | raise MD5SumError(url) | 485 | raise MD5SumError(url) |