def package_as_dict(package):
    """
    Split a package string into a dictionary

    Args:
        package (str): A string containing the package descripter
        as downloaded from an apt repository.

    Returns:
        dict: A dictionary containing the package information.
    """
    package_dict = {}
    for line in package.split("\n"):
        if ":" in line:
            key, value = line.split(":", 1)
            if key.startswith('"') and key.endswith('"'):
                key = key[1:-1]
            if value.startswith(' "') and value.endswith('"'):
                value = value[2:-1]
            if value:
                package_dict[key] = value

    # Sanity check to ensure this is a valid package
    if "Package" not in package_dict:
        return None
    return package_dict