until -package:base-prelude -package:snap-core -is:exact package:base-compat

until p f yields the result of applying f until p holds.