build/packages: add yum_priority function

yum_priority is a new function to set priorities on YUM repositories.

Usage: yum_priority <repo-name> <repo-priority>