The fuel pump on my 2005 RSTD quit, so I purchased a new one and the bike works fine. After it was fixed a parts man at my local shop told me of an incident when he had a pump failure on a Yamaha, and got it to work by cleaning the points on the pump. I took the old pump apart (one screw) and exposed the points. I cleaned the points with WD40 to remove all the dirt and dust and saw that the points were pitted. I lightly filed the pitted points with 600 grit emery paper and when I tested the pump it worked like new.
I wouldn't trust the old pump for general use but I now have a spare in my saddlebag and know how to do a temporary fix if stuck while on the road.