Version 1 (modified by james, 7 years ago)
--

This will get you the arch. information that yum knows about.

import rpmUtils.arch

print '$arch =', rpmUtils.arch.getCanonArch()
print '$basearch =', rpmUtils.arch.getBaseArch()