'Gets the names for the RPM packages specified in pkg
:type pkg: KojiPkgSpec
:param pkg: a package specification
:type arch: string
:param arch: packages built for this architecture, but also including
architecture independent (noarch) packages'

def get_pkg_rpm_names(self, pkg, arch=None):

    if (arch is None):
        arch = utils.get_arch()
    rpms = self.get_pkg_rpm_info(pkg, arch)
    return [rpm['name'] for rpm in rpms]
