Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / extlibs / hippomocks.scons
index 6d5b5a4..412c6f2 100644 (file)
@@ -32,10 +32,10 @@ target_os = env.get('TARGET_OS')
 src_dir = env.get('SRC_DIR')
 
 # Only verify/install on linux
-if target_os == 'linux':
-       print '*** Checking for installation of hippomocks ***'
+if target_os in ['linux']:
+       print('*** Checking for installation of hippomocks ***')
 
-       hippomocks_sha      = '2f40aa11e31499432283b67f9d3449a3cd7b9c4d'
+       hippomocks_sha      = '8e210c5808d490b26fff69151c801fa28d291fcb'
        hippomocks_dir_src  = src_dir + '/extlibs/hippomocks-' + hippomocks_sha
        hippomocks_dir_dest = src_dir + '/extlibs/hippomocks-master'
        hippomocks_zip_file = src_dir + '/extlibs/hippomocks-' + hippomocks_sha + '.zip'
@@ -49,9 +49,9 @@ if target_os == 'linux':
                        hippomocks_zip = hippomocks_zip_file
 
                # Unzip hippomocks
-               print 'Unzipping hippomocks'
+               print('Unzipping hippomocks')
                env.UnpackAll(hippomocks_dir_src, hippomocks_zip)
-               print 'Renaming hippomocks directory'
+               print('Renaming hippomocks directory')
                os.rename(hippomocks_dir_src, hippomocks_dir_dest)