Track missing and duplicate sbricks

merge/2021-11-19
kaetemi 3 years ago
parent 7a6227efcc
commit 3d174a1294
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -35,7 +35,9 @@ if preserveIndex:
for entry in table:
e = filter(None, entry)
entryName = e[0] + str(int(e[1])).zfill(4) # + name
sbrickMap[entryName] = e + [ "_unused" ]
if "__missing" in e:
e.remove("__missing")
sbrickMap[entryName] = e + [ "__missing" ]
for sbrick in fileMap:
contents = ""
@ -80,6 +82,14 @@ for sbrick in fileMap:
entry += [ name ]
if sitem != templateName and sitem != name:
entry += [ sitem ]
if entryName in sbrickMap:
if not "__missing" in sbrickMap[entryName][2:]:
print("Duplicate sbrick")
print(entry)
print(sbrickMap[entryName])
for name in sbrickMap[entryName][2:]:
if name != "__missing" and not name in entry:
entry += [ name ]
sbrickMap[entryName] = entry
w = open("sbrick_index.tsv", "w")

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save