mirror of
https://github.com/libvirt/libvirt.git
synced 2025-01-08 07:03:19 -06:00
sync_qemu_models_i386: Do not overwrite existing models
We don't change definitions of CPU models which were already included in a libvirt release to maintain migration compatibility. Thus the script can just skip existing models and save us from having to drop the changes it would do to them. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
c16e7f231f
commit
233afc3c58
@ -535,6 +535,10 @@ def main():
|
||||
|
||||
for model in models:
|
||||
name = os.path.join(args.outdir, f"x86_{model['name']}.xml")
|
||||
if os.path.isfile(name):
|
||||
# Ignore existing models as CPU models in libvirt should never
|
||||
# change once released.
|
||||
continue
|
||||
with open(name, "wt") as f:
|
||||
output_model(f, model)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user