+ sys.path.append(conf_values["sharedir"]+"/modules")
+ from catalyst_support import *
+
+ # Start checking that digests are valid now that the hash_map was imported
+ # from catalyst_support
+ if "digests" in conf_values:
+ for i in conf_values["digests"].split():
+ if i not in hash_map:
+ print
+ print i+" is not a valid digest entry"
+ print "Valid digest entries:"
+ print hash_map.keys()
+ print
+ print "Catalyst aborting...."
+ sys.exit(2)
+ if find_binary(hash_map[i][1]) == None:
+ print
+ print "digest="+i
+ print "\tThe "+hash_map[i][1]+\
+ " binary was not found. It needs to be in your system path"
+ print
+ print "Catalyst aborting...."
+ sys.exit(2)
+ if "hash_function" in conf_values:
+ if conf_values["hash_function"] not in hash_map:
+ print
+ print conf_values["hash_function"]+\
+ " is not a valid hash_function entry"
+ print "Valid hash_function entries:"
+ print hash_map.keys()
+ print
+ print "Catalyst aborting...."
+ sys.exit(2)
+ if find_binary(hash_map[conf_values["hash_function"]][1]) == None:
+ print
+ print "hash_function="+conf_values["hash_function"]
+ print "\tThe "+hash_map[conf_values["hash_function"]][1]+\
+ " binary was not found. It needs to be in your system path"
+ print
+ print "Catalyst aborting...."
+ sys.exit(2)