postinstall: migrate_to_bullseye should be skipped on bullseye

This commit is contained in:
Alexandre Aubin 2022-02-01 15:43:03 +01:00
parent 83dfc0590d
commit de6844250f

View file

@ -930,10 +930,6 @@ def _skip_all_migrations():
all_migrations = _get_migrations_list()
new_states = {"migrations": {}}
for migration in all_migrations:
# Don't skip bullseye migration while we're
# still on buster
if "migrate_to_bullseye" in migration.id:
continue
new_states["migrations"][migration.id] = "skipped"
write_to_yaml(MIGRATIONS_STATE_PATH, new_states)