Add repo mirror building class
Fix repo building