mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
Add a trivial guard against using the same uuid twice
This commit is contained in:
parent
a965a3191e
commit
c0fb66ec30
@ -169,10 +169,16 @@ def generate(defines):
|
||||
|
||||
print(HEADER, end='')
|
||||
|
||||
uuids = set()
|
||||
|
||||
for type, arch, uuid in defines:
|
||||
tdesc = TYPES[type]
|
||||
adesc = '' if arch is None else f' ({ARCHITECTURES[arch]})'
|
||||
|
||||
# Let's make sure that we didn't select&paste the same value twice
|
||||
assert uuid not in uuids
|
||||
uuids.add(uuid)
|
||||
|
||||
if type != prevtype:
|
||||
prevtype = type
|
||||
morea, moreb = DESCRIPTIONS[type]
|
||||
|
Loading…
x
Reference in New Issue
Block a user