'Gets the file 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_file_names(self, pkg, arch=None):

    if (arch is None):
        arch = utils.get_arch()
    rpm_names = []
    rpms = self.get_pkg_rpm_info(pkg, arch)
    for rpm in rpms:
        arch_rpm_name = koji.pathinfo.rpm(rpm)
        rpm_name = os.path.basename(arch_rpm_name)
        rpm_names.append(rpm_name)
    return rpm_names
