until -package:base -package:base-compat is:exact package:rebase

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