base.bbclass, sanity.bbclass: use sha256sum instead of shasum -a256
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 1 Apr 2007 21:42:48 +0000 (21:42 +0000)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 1 Apr 2007 21:42:48 +0000 (21:42 +0000)
classes/base.bbclass
classes/sanity.bbclass

index 2ea5251..6f8196c 100644 (file)
@@ -54,7 +54,7 @@ def base_chk_file(parser, pn, pv, src_uri, localpath):
         raise Exception("Executing md5sum failed")
 
     try:
-        shapipe = os.popen('shasum -a256 -p ' + localpath)
+        shapipe = os.popen('sha256sum -b ' + localpath)
         shadata = (shapipe.readline().split() or [ "" ])[0]
         shapipe.close()
     except OSError:
index edef280..f38644b 100644 (file)
@@ -86,7 +86,7 @@ def check_sanity(e):
        if not check_app_exists('${BUILD_PREFIX}g++', e.data):
                missing = missing + "C++ Compiler (${BUILD_PREFIX}g++),"
 
-       required_utilities = "patch diffstat texi2html makeinfo cvs svn git bzip2 tar gzip gawk shasum md5sum"
+       required_utilities = "patch diffstat texi2html makeinfo cvs svn git bzip2 tar gzip gawk sha256sum md5sum"
 
        for util in required_utilities.split():
                if not check_app_exists( util, e.data ):