Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 šgt`gã@s|ddlmZddlmZddlZddlZddlZddlmZm Z m Z ddl Z ddl Z dd„Z e jjGdd„de jjƒƒZdS) é)Úabsolute_import)Úunicode_literalsN)Ú_ÚP_Úloggerc CsDytjj|dd�Stttfk r>tjtdƒj |ƒƒ‚YnXdS)NT)ZfuzzyzNot a valid date: "{0}".) ÚdateutilÚparserÚparseÚ ValueErrorÚ TypeErrorÚ OverflowErrorÚargparseZArgumentTypeErrorrÚformat)Úval©rú/usr/lib/python3.6/changelog.pyÚ validate_date!src@sLeZdZdZedƒZedd„ƒZdd„Zdd„Z d d „Z d d „Z d d„Z dS)ÚChangelogCommandÚ changelogzShow changelog data of packagescCsd|jƒ}|jdddttdƒd�|jddttdƒd�|jdd d td ƒd �|jd dtdƒd�dS)Nz--sinceZDATEzZshow changelog entries since DATE. To avoid ambiguosity, YYYY-MM-DD format is recommended.)ÚmetavarÚdefaultÚtypeÚhelpz--countz2show given number of changelog entries per package)rrrz --upgradesFÚ store_truezmshow only new changelog entries for packages, that provide an upgrade for some of already installed packages.)rÚactionrÚpackageÚ*ZPACKAGE)Únargsr)Zadd_mutually_exclusive_groupÚ add_argumentrrÚint)rZ filter_grouprrrÚ set_argparser-s   zChangelogCommand.set_argparsercCs|jj}d|_d|_d|_dS)NT)ÚcliÚdemandsZavailable_reposZsack_activationÚ changelogs)Úselfr"rrrÚ configure>szChangelogCommand.configurecCsÊ|jjjƒ}|jjr”|jdd�xŠ|jjD]d}tjj|dd�j |jjdddd�}|jj rh|j|jj d�|r||j |j ƒƒ}q*t jtdƒ|ƒq*Wn|jj r¬|j|jj d�|jjr¾|jƒ}n|jƒ}|S)NT)Úempty)Z ignore_caseF)Z with_nevraZ with_providesZwith_filenames)ZreponamezNo match for argument: %s)ÚbaseZsackÚqueryÚoptsrZfiltermÚdnfZsubjectZSubjectZget_best_queryZrepoÚunionZlatestrÚinforÚupgradesZ available)r$ÚqÚpkgZpkg_qrrrr(Ds$    zChangelogCommand.querycCs>tjƒ}x0t|ƒD]$}|j|jp$|j|jfgƒj|ƒqW|S)N)Ú collectionsÚ OrderedDictÚsortedÚ setdefaultZ source_nameÚnameZevrÚappend)r$ZpackagesÚby_srpmr/rrrr6Zs$zChangelogCommand.by_srpmcsTˆjjrˆjj|ƒSˆjjr.|jdˆjj…SˆjjrJ‡fdd„|jDƒS|jSdS)Ncs$g|]}|dˆjjjƒkr|‘qS)Z timestamp)r)ÚsinceZdate)Ú.0Úchlog)r$rrú fsz6ChangelogCommand.filter_changelogs..)r)r-r'Zlatest_changelogsÚcountr#r7)r$rr)r$rÚfilter_changelogs`s z"ChangelogCommand.filter_changelogscCsè|jjr"tjtdƒj|jjƒƒnP|jjrLtjtdd|jjƒj|jjƒƒn&|jjrdtjtdƒƒntjtdƒƒ|j |j ƒƒ}xb|D]Z}t tdƒjdj t dd „||Dƒƒƒƒƒx*|j||d ƒD]}t |jj|ƒƒqÈWq†WdS) NzListing changelogs since {}zListing only latest changelogzListing {} latest changelogszBListing only new changelogs since installed version of the packagezListing all changelogszChangelogs for {}z, cSsh|] }t|ƒ’qSr)Ústr)r8r/rrrú {sz'ChangelogCommand.run..r)r)r7rr,rrr;rr-r6r(ÚprintÚjoinr2r<r'Zformat_changelog)r$r6r4r9rrrÚrunks     zChangelogCommand.runN)r) Ú__name__Ú __module__Ú __qualname__ÚaliasesrZsummaryÚ staticmethodr r%r(r6r<rArrrrr(s  r)Z __future__rrr r0Zdateutil.parserrZdnfpluginscorerrrr*Zdnf.clirZpluginZregister_commandr!ZCommandrrrrrÚs