Add get_repo function to yumpkg.py
Adding pkgrepo.managed state