FIX build case + provide repo replace interface
1.Fix the build fails_msg
2.Provide the repo replace interface

Signed-off-by: Time Su <lsu@redhat.com>