def get_package_repo_name(package_info):
    """
    The source repo name is stored with the package.
    The "From repo" line indicates where the package came from.

    Return the repo name or None if not found
    """

    # should check that there is EXACTLY one line
    repo_lines = \
        [line for line in package_info if line.startswith("From repo ")]

    # "From repo    : <repo name>"
    # Get the value and remove white space.
    if len(repo_lines) > 0:
        repo_name = repo_lines[0].split(':')[1].strip()
    else:
        repo_name = None

    return repo_name