def _is_rebuild(pkg):
    """ Is this a rebuild pacakge. Eg. foo-1-2.el8+4.noarch """
    rel = pkg.release
    nums = "0123456789"
    if rel[-1] not in nums:
        return False
    while rel and rel[-1] in nums:
        rel = rel[:-1]
    if rel and rel[-1] == '+':
        return True
    return False