[PATCH] Add --wait option to regen-repo