Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
3
ft` @ s~ d dl mZ d dl mZ d dlmZmZ d dlZd dlZ d dl
Zd dlZd dlZd dl
Z
d dlZe
jdZG dd deZdS ) )absolute_import)unicode_literals)_ucdNdnfc @ s, e Zd Zdd Zdd Zdd Zdd Zd S )
RepoReaderc C s || _ || _d S )N)confopts)selfr r r /usr/lib/python3.6/read.py__init__$ s zRepoReader.__init__c c s x| j | jjD ]
}|V qW g }x8| jjD ],}x&tjtjj|dD ]}|j| qFW q,W |j dd d xT|D ]L}yx| j |D ]
}|V qW W qr t
jjk
r t
jtd| Y qrX qrW d S )Nz*.repoc S s t jj| d d S )N )r utilZ
split_path)xr r r 5 s z%RepoReader.__iter__..)keyz'Warning: failed loading '%s', skipping.)
_get_reposr Zconfig_file_pathreposdirglobospathjoinappendsortr
exceptionsConfigErrorloggerwarningr )r
rZrepo_configsr r repofnr r r __iter__( s
zRepoReader.__iter__c C s^ t jjj|| jj}tjj|}|dk rl||krJtdj |||| |}ntdj ||| |}tj
j|tjj|| j}y|j
|||tjj W nZ tk
r } z>||krtdj |||}ntdj ||}tj
j|W Y dd}~X nX |jdtjjkr8||kr tdj ||}ntdj |}tj| t|j|_|jj| jj ||_|S ) z)Build a repository using the parsed data.Nz&Bad id for repo: {} ({}), byte = {} {}z!Bad id for repo: {}, byte = {} {}z.Repository '{}' ({}): Error parsing config: {}z)Repository '{}': Error parsing config: {}namez@Repository '{}' ({}) is missing name in configuration, using id.z;Repository '{}' is missing name in configuration, using id.)libdnfr ConfigParserZ
substitute
substitutionsr repoZrepo_id_invalidr formatr r ZRepoZ _populateZPRIO_REPOCONFIG
ValueErrorZ
_get_priorityZPRIO_DEFAULTr r r r# Z_substitutionsupdateZcfg) r
parserZid_r! Zsubstituted_idZinvalidmsgr' er r r _build_repo? s8
zRepoReader._build_repoc c s | j j}tj j }|j| y|j| W nd tk
rd } ztjj t
dj||W Y dd}~X n, tk
r } zt
j| W Y dd}~X nX x|j D ]x}|dkrqy| j|t||}W n: tjjtjj fk
r } zt
j| wW Y dd}~X nX ||_|j| j |V qW dS )z4Parse and yield all repositories from a config file.zParsing file "{}" failed: {}Nmain)r r&