only remove the repo RPM if necessary