Such solution is a bad solution. You should not repackage repomirror, but should create a new package with adding/removing ipv4 address to hosts file.