From a2abdcf707c01bcab586b0be23b6ee3cc77a314c Mon Sep 17 00:00:00 2001 From: fly Date: Fri, 14 Feb 2020 00:59:40 +0000 Subject: [PATCH] Fix .dirindex entrys Signed-off-by: fly --- worldbuild-packager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldbuild-packager.py b/worldbuild-packager.py index 845b8cc..8fb42a1 100755 --- a/worldbuild-packager.py +++ b/worldbuild-packager.py @@ -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)