def origin_mapper(origin, package):
    """
    Update package code_view_url using FreeBSD origin information and return package.
    """
    package.qualifiers['origin'] = origin
    package.code_view_url = 'https://svnweb.freebsd.org/ports/head/{}'.format(
        origin)
