Remove checkEnabledRepo to support el5