Port more functions from yumpkg.py to yumpkg5.py