'Returns information from Koji on the package
:type pkg: KojiPkgSpec
:param pkg: information about the package, as a KojiPkgSpec instance
:return: information from Koji about the specified package'

def get_pkg_info(self, pkg):

    info = {}
    if (pkg.build is not None):
        info = self.session.getBuild(int(pkg.build))
    elif ((pkg.tag is not None) and (pkg.package is not None)):
        builds = self.session.listTagged(pkg.tag, latest=True, inherit=True, package=pkg.package)
        if builds:
            info = builds[0]
    return info
