/usr/lib/python3.6/site-packages/dnf/cli/commands/__pycache__
NameSizeModeActions
alias.cpython-36.opt-1.pyc53300644editdlrm
alias.cpython-36.pyc53300644editdlrm
autoremove.cpython-36.opt-1.pyc19140644editdlrm
autoremove.cpython-36.pyc19140644editdlrm
check.cpython-36.opt-1.pyc37230644editdlrm
check.cpython-36.pyc37230644editdlrm
clean.cpython-36.opt-1.pyc41050644editdlrm
clean.cpython-36.pyc41050644editdlrm
deplist.cpython-36.opt-1.pyc8890644editdlrm
deplist.cpython-36.pyc8890644editdlrm
distrosync.cpython-36.opt-1.pyc14400644editdlrm
distrosync.cpython-36.pyc14400644editdlrm
downgrade.cpython-36.opt-1.pyc18030644editdlrm
downgrade.cpython-36.pyc18030644editdlrm
group.cpython-36.opt-1.pyc103810644editdlrm
group.cpython-36.pyc104780644editdlrm
history.cpython-36.opt-1.pyc114900644editdlrm
history.cpython-36.pyc114900644editdlrm
install.cpython-36.opt-1.pyc60830644editdlrm
install.cpython-36.pyc60830644editdlrm
makecache.cpython-36.opt-1.pyc12630644editdlrm
makecache.cpython-36.pyc12630644editdlrm
mark.cpython-36.opt-1.pyc29170644editdlrm
mark.cpython-36.pyc29170644editdlrm
module.cpython-36.opt-1.pyc149640644editdlrm
module.cpython-36.pyc149640644editdlrm
reinstall.cpython-36.opt-1.pyc29650644editdlrm
reinstall.cpython-36.pyc30400644editdlrm
remove.cpython-36.opt-1.pyc39210644editdlrm
remove.cpython-36.pyc39210644editdlrm
repolist.cpython-36.opt-1.pyc74260644editdlrm
repolist.cpython-36.pyc74260644editdlrm
repoquery.cpython-36.opt-1.pyc222970644editdlrm
repoquery.cpython-36.pyc222970644editdlrm
search.cpython-36.opt-1.pyc43940644editdlrm
search.cpython-36.pyc43940644editdlrm
shell.cpython-36.opt-1.pyc78710644editdlrm
shell.cpython-36.pyc78710644editdlrm
swap.cpython-36.opt-1.pyc18870644editdlrm
swap.cpython-36.pyc18870644editdlrm
updateinfo.cpython-36.opt-1.pyc139050644editdlrm
updateinfo.cpython-36.pyc139050644editdlrm
upgrade.cpython-36.opt-1.pyc36810644editdlrm
upgrade.cpython-36.pyc36810644editdlrm
upgrademinimal.cpython-36.opt-1.pyc11030644editdlrm
upgrademinimal.cpython-36.pyc11030644editdlrm
__init__.cpython-36.opt-1.pyc263950644editdlrm
__init__.cpython-36.pyc266380644editdlrm
Edit: /usr/lib/python3.6/site-packages/dnf/cli/commands/__pycache__/search.cpython-36.pyc (4394B)
3 ft`@sddlmZddlmZddlmZddlZddlmZddlmZddl m Z m Z m Z ddl Z ddlZ ddlZ ddlZddlZejdZGd d d ejZdS) )absolute_import)print_function)unicode_literalsN)commands) OptionParser)ucd_C_dnfc@sPeZdZdZdZedZeddZddZ d d Z d d Z d dZ ddZ dS) SearchCommandzTA class containing methods needed by the cli to execute the search command. searchsez+search package details for the given stringc Cs<|jddtdd|jddtddgdtjtd d dS) Nz--all store_truez'search also package description and URL)actionhelp query_string+ZKEYWORDallzKeyword to search for)nargsmetavarchoicesdefaultrr) add_argumentrrZPkgNarrowCallback)parserr/usr/lib/python3.6/search.py set_argparser0s  zSearchCommand.set_argparsercs4tjdtddfdtddfdtddfdtd fffd d fd d }tjj}x(|D] }j|d|j|d|qbWjj rxd|D] }j|d|j|d|qWn:t |}t |j }x$|D]}t |j ||kr||=qWd}d} d} d} d} jjjs0jjjj|j dj} t} x|jd| dD]}jjjs~|j|j| krlqF| j|j|j||j|kr|j|}d} | |j |kr|j |} d} | |j|| kkr|j|| k} d} | r|| || d} jjj||j||qFWt |dkr0tjtddS)z0Search for simple text tags in a package object.nameZlongNamesummaryZSummary descriptionZ DescriptionZurlZURLc sy|S|SdS)Nr)attr) TRANS_TBLrr_translate_attrCsz.SearchCommand._search.._translate_attrcs^t|}tdj|}|r*td|}n td|}jjj|dj|}tt|dS)Nz & z%s Exactly Matched: %%sz%s Matched: %%sz, )maprjoinbaseoutputZ fmtSectionprintr) exact_matchZattrskeysZ trans_attrsZtrans_attrs_strZ section_textZ formatted)r#selfrr_print_section_headerIs  z4SearchCommand._search.._print_section_headerNF)pkgT)reverseZlimit_torzNo matches found.) collections OrderedDictr rr Z match_counterZ MatchCounter_search_countedoptsrlenlistr*matched_needlesr&ZconfZshowdupesfromrepossackqueryfiltermZlatestsetsortedrZarchaddZ matched_keysZmatched_haystacksr'Z matchcallbackloggerinfo)r+argsr,counterargZneedlesZpkgsr-Z used_attrsr5r)Zprint_section_headerlimitseenr)r"r#r+r_search9s`               zSearchCommand._searchcCs`d||i}tjj|r$d||i}|jjjjtjf|}x|j D]}|j |||qFW|S)Nz %s__substrz%s__glob) r utilZis_glob_patternr&r6r7r8hawkeyZICASErunr;)r+r?r!ZneedleZfdictqr-rrrr1s   zSearchCommand._search_countedcCs |jjs|jjtjtjddS)N)stdoutstderr)r2quietcliZredirect_loggerloggingZWARNINGINFO)r+rrr pre_configureszSearchCommand.pre_configurecCsD|jjs|jj|jj}d|_d|_d|_|jjp:|jj |j_dS)NTF) r2rJrKZredirect_repo_progressdemandsZavailable_reposZfresh_metadataZsack_activationrZquery_string_action)r+rOrrr configures zSearchCommand.configurecCstjtd|j|jjS)NzSearching Packages: )r<debugrrCr2r)r+rrrrFszSearchCommand.runN)r r )__name__ __module__ __qualname____doc__aliasesrr staticmethodrrCr1rNrPrFrrrrr (s O  r )Z __future__rrrr/Zdnf.clirZdnf.cli.option_parserrZdnf.i18nrrr r Zdnf.match_counterZdnf.utilrErLZ getLoggerr<ZCommandr rrrrs