'Checks if tag is valid on Koji
:type pkg: KojiPkgSpec
:param pkg: a package specification'

def is_pkg_spec_tag_valid(self, pkg):

    if (pkg.tag is not None):
        tag = self.session.getTag(pkg.tag)
        if tag:
            return True
    return False
