Why did you add all this repo code and not make the following change instead?
alias yum='yum --releasever=6.5'
to 
alias yum='yum --releasever=6.4'