osm2city path prefix removed
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
1c338a0861
commit
b899ae62a6
1 changed files with 3 additions and 3 deletions
|
@ -103,9 +103,9 @@ def update_parent_index(base, path, changed_dir):
|
||||||
index = {}
|
index = {}
|
||||||
index["version"] = 1
|
index["version"] = 1
|
||||||
if path != "":
|
if path != "":
|
||||||
index["path"] = "osm2city/" + path
|
index["path"] = path
|
||||||
else:
|
else:
|
||||||
index["path"] = "osm2city"
|
index["path"] = ""
|
||||||
|
|
||||||
sha = get_sha1(base + "/" + path + "/" + changed_dir + "/.dirindex")
|
sha = get_sha1(base + "/" + path + "/" + changed_dir + "/.dirindex")
|
||||||
if sha != None:
|
if sha != None:
|
||||||
|
@ -120,7 +120,7 @@ def update_index(output, part, name, name_major):
|
||||||
else:
|
else:
|
||||||
index = {}
|
index = {}
|
||||||
index["version"] = 1
|
index["version"] = 1
|
||||||
index["path"] = "osm2city/" + part + "/" + name_major
|
index["path"] = part + "/" + name_major
|
||||||
|
|
||||||
sha = get_sha1(output + "/" + part + "/" + name_major + "/" + name + ".txz")
|
sha = get_sha1(output + "/" + part + "/" + name_major + "/" + name + ".txz")
|
||||||
if sha != None:
|
if sha != None:
|
||||||
|
|
Loading…
Reference in a new issue