瀏覽代碼

Fixed the MD5 hash not being present

Yentl Van Tendeloo 9 年之前
父節點
當前提交
9c152844fd
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      bootstrap/bootstrap.py
  2. 1 1
      bootstrap/compilation_manager.alc

+ 1 - 0
bootstrap/bootstrap.py

@@ -265,6 +265,7 @@ def bootstrap():
                     md5.update(open(bootstrap_file, 'r').read())
                     f.write('Node hash_value("%s")\n' % md5.hexdigest(), both=False)
                     f.write("Edge _(elem, hash_value)\n", both=False)
+                    f.write("Edge _(_, hash)\n", both=False)
                     #TODO add the symbols as well!
 
                 # Create code for initial user

+ 1 - 1
bootstrap/compilation_manager.alc

@@ -52,7 +52,7 @@ Void function compilation_manager():
 		if (dict_in(root, object_name)):
 			output(root[object_name]["hash_md5"])
 		else:
-			output(0)
+			output(create_node())
 	else:
 		log("Failed to understand command")