Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 ÌÐg&ã@s`ddlmZddlmZddlmZddlZddlZ ddl Z ddl Z ej j Z Gdd„deƒZdS)é)Úunicode_literals)Ú ConfigError)Ú_Ncs€eZdZdd„Zdd„Zdd„Zdd„Zffd d „Zd d „Zd d„Z dd„Z dd„Z ‡fdd„Z dd„Z dd„Zdd„Z‡ZS)ÚRepoDictcCsj|j}||krd}t||ƒ‚y|jjƒWn0tk r\}ztdj|ƒƒ‚WYdd}~XnX|||<dS)Nz;Repository %s is listed more than once in the configurationz{0})ÚidrZ_repoZverifyÚ RuntimeErrorÚformat)ÚselfÚrepoZid_ÚmsgÚe©r ú/usr/lib/python3.6/repodict.pyÚadd#s  z RepoDict.addcCstjj|jƒƒS)N)ÚdnfÚutilÚ MultiCallListÚvalues)r r r rÚall/sz RepoDict.allcCstjj|jƒƒ S)N)rrÚemptyÚ iter_enabled)r r r rÚ _any_enabled3szRepoDict._any_enabledcCsPxJ|jƒD]>}x8|j||jƒƒD]$}|js tjtdƒ|jƒ|jƒq Wq WdS)Nzenabling %s repository)rÚ get_matchingrÚenabledÚloggerÚinforÚenable)r Z sub_name_fnr Úfoundr r rÚ_enable_sub_repos6s zRepoDict._enable_sub_reposc  s¢‡fdd„}tjj|ˆƒ}x:|D]2}d|kr>djtjj|ƒƒ}|j||ƒg7_q Wx$|jƒD]\}} t |||| ƒƒq`W|j |ƒt j t dƒ|dj|ƒƒ|S)a¾ Creates new repo object and add it into RepoDict. Variables in provided values will be automatically substituted using conf.substitutions (like $releasever, ...) @param repoid: Repo ID - string @param conf: dnf Base().conf object @param baseurl: List of strings @param kwargs: keys and values that will be used to setattr on dnf.repo.Repo() object @return: dnf.repo.Repo() object cspt|tƒrtjjj|ˆjƒSt|tƒs0t|tƒrlg}x.|D]&}t|tƒr:|j tjjj|ˆjƒƒq:W|rl|S|S)N) Ú isinstanceÚstrÚlibdnfÚconfZ ConfigParserÚ substituteZ substitutionsÚlistÚtupleÚappend)rZ substitutedÚvalue)r"r rr#Is   z)RepoDict.add_new_repo..substitutez://z file://{}zAdded %s repo from %sz, )rr ZReporÚosÚpathÚabspathÚbaseurlÚitemsÚsetattrrrrrÚjoin) r Zrepoidr"r+Úkwargsr#r r)Úkeyr'r )r"rÚ add_new_repo=s   zRepoDict.add_new_repocCsdd„}|j|ƒdS)z@enable debug repos corresponding to already enabled binary reposcSs&|jdƒrdj|dd…ƒSdj|ƒS)Nz-rpmsz {}-debug-rpmséz {}-debuginfoéûÿÿÿ)Úendswithr)Únamer r rÚ debug_nameesz/RepoDict.enable_debug_repos..debug_nameN)r)r r6r r rÚenable_debug_reposaszRepoDict.enable_debug_reposcCsdd„}|j|ƒdS)zAenable source repos corresponding to already enabled binary reposcSs&|jdƒrdj|dd…ƒSdj|ƒS)Nz-rpmsz{}-source-rpmsr2z {}-sourcer3)r4r)r5r r rÚ source_nameosz1RepoDict.enable_source_repos..source_nameN)r)r r8r r rÚenable_source_reposkszRepoDict.enable_source_reposcsZtjjˆƒr,‡‡fdd„ˆDƒ}tjj|ƒSˆjˆdƒ}|dkrLtjjgƒStjj|gƒS)Ncs g|]}tj|ˆƒrˆ|‘qSr )Úfnmatch)Ú.0Úk)r0r r rú xsz)RepoDict.get_matching..)rrZis_glob_patternrÚget)r r0Úlr r )r0r rrus    zRepoDict.get_matchingcCsdd„|jƒDƒS)Ncss|]}|jr|VqdS)N)r)r;Úrr r rú �sz(RepoDict.iter_enabled..)r)r r r rrszRepoDict.iter_enabledcs$dd„ttt|ƒjƒdd„d�DƒS)zreturn repos sorted by prioritycss|] }|VqdS)Nr )r;Úitemr r rrA…sz!RepoDict.items..cSs|dj|djfS)Né)ZpriorityZcost)Úxr r rÚ†sz RepoDict.items..)r0)ÚsortedÚsuperrr,)r )Ú __class__r rr,ƒszRepoDict.itemscCs|jƒS)N)Úkeys)r r r rÚ__iter__ˆszRepoDict.__iter__cCsdd„|jƒDƒS)Ncss|]\}}|VqdS)Nr )r;r<Úvr r rrAŒsz RepoDict.keys..)r,)r r r rrI‹sz RepoDict.keyscCsdd„|jƒDƒS)Ncss|]\}}|VqdS)Nr )r;r<rKr r rrA�sz"RepoDict.values..)r,)r r r rrŽszRepoDict.values)Ú__name__Ú __module__Ú __qualname__rrrrr1r7r9rrr,rJrIrÚ __classcell__r r )rHrr!s  $    r)Z __future__rZdnf.exceptionsrZdnf.i18nrZdnf.utilrZ libdnf.confr!r:r(rrÚdictrr r r rÚs