until -is:exact -package:Cabal -package:selective -package:rebase package:foundation

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