View file File name : repo.cpython-36.pyc Content :3 ��fLQ � @ sF d dl mZ d dl mZ d dlmZmZ d dlZd dlZd dl Zd dl Zd dlZd dlZd dl Zd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZdZ dZ!ej"ej# d Z$dej%e$�ej&f Z'd e'e!f d e'e f dd�Z(ej)d �Z*dd� Z+dd� Z,d-dd�Z-dd� Z.G dd� de/�Z0G dd� de1�Z2G dd� dej3j4�Z5G dd� de/�Z6G dd � d ej7j8�Z9G d!d"� d"ej3j:�Z;G d#d$� d$e;�Z<G d%d&� d&e;�Z=G d'd(� d(ej3j:�Z>ej7j?j@ZAej7j?jBZCej7j?jDZEG d)d*� d*ej7jF�ZGG d+d,� d,ejHjI�Z?dS ).� )�absolute_import)�unicode_literals)�ucd�_N�packagesZ mirrorlistz-_.:z(?P<repoid>[%s]+)\-[%s]{16}z>^%s\/.*((xml|yaml)(\.gz|\.xz|\.bz2|.zck)?|asc|cachecookie|%s)$z^%s\/%s\/.+rpm$z^.+(solv|solvx)$)�metadatar Zdbcache�dnfc C s t jjj| �}|dk rdS |S )zAReturn index of an invalid character in the repo ID (if present).r N)�libdnf�repo�RepoZverifyId)Zrepo_idZ first_invalid� r �/usr/lib/python3.6/repo.py�repo_id_invalidH s r c G s8 x"|D ]}|| |�}|d k r|S qW t td�| ��d S )Nz"no matching payload factory for %s)� ValueErrorr )�pkg�progressZ factories�fn�ploadr r r �_pkg2payloadO s r Tc C s� dd� }|j j� dd� t| |d�D �}t� }ytjjjtjj|�|� W n, t k rv } zt |�|_W Y d d }~X nX |j� |j j � |_xj|D ]b}|j� }|d ks�|jd�r�q�|j� } | j} | j}|dkr�|jj|� q�|jjj� |g|j|<