Fix .dirindex entrys

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2020-02-14 00:59:40 +00:00
parent d6d36e8caf
commit a2abdcf707

View file

@ -147,7 +147,7 @@ def update_index(output, name, name_major):
sha = get_sha1(output + "/" + name_major + "/" + name + ".zip")
if sha != None:
index["z:" + name] = sha
index["z:" + name + ".zip"] = sha
write_index(output + "/" + name_major + "/.dirindex", index)
@ -160,7 +160,7 @@ def update_index(output, name, name_major):
sha = get_sha1(output + "/" + name_major + "/.dirindex")
if sha != None:
main_index["z:" + name] = sha
main_index["d:" + name_major] = sha
write_index(output + "/.dirindex", main_index)