def look_for_updates_for_version(itemname, itemversion, cataloglist):
    'Looks for updates for a specific version of an item. Since these\n    can appear in manifests and pkginfo as item-version or item--version\n    we have to search twice.'
    name_and_version = ('%s-%s' % (itemname, itemversion))
    alt_name_and_version = ('%s--%s' % (itemname, itemversion))
    update_list = look_for_updates(name_and_version, cataloglist)
    update_list.extend(look_for_updates(alt_name_and_version, cataloglist))
    update_list = list(set(update_list))
    return update_list
Looks for updates for a specific version of an item. Since these
can appear in manifests and pkginfo as item-version or item--version
we have to search twice.
def look_for_updates_for_version(itemname, itemversion, cataloglist):
    'Looks for updates for a specific version of an item. Since these\n    can appear in manifests and pkginfo as item-version or item--version\n    we have to search twice.'
    name_and_version = ('%s-%s' % (itemname, itemversion))
    alt_name_and_version = ('%s--%s' % (itemname, itemversion))
    update_list = look_for_updates(name_and_version, cataloglist)
    update_list.extend(look_for_updates(alt_name_and_version, cataloglist))
    update_list = list(set(update_list))
    return update_list