uawdijnntqw1x1x1
IP : 18.217.168.218
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
..
/
lib
/
python2.7
/
site-packages
/
rhn
/
..
/
yum
/
pkgtag_db.pyc
/
/
� 8M�bc@s�ddlmZmZmZddlmZddlZddlZddlZd�Zde fd��YZ de fd��YZdS( i����(tsqlitet executeSQLtsql_esc(tPkgTagsErrorNcs>�fd�}�j|_�j|_|jj�j�|S(s;This decorator converts sqlite exceptions into PkgTagsErrorcs�y�||�SWnmtjjk r�}tjdkrnt|d�r\tt|j��qntt|��ntt|��nXdS(Nitmessage( tsqlutilsRtErrortsyst hexversionthasattrRtstrR(targstkwargste(tfunc(s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pytnewFuncs(t__name__t__doc__t__dict__tupdate(RR((Rs1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pytcatchSqliteExceptions tPackageTagDBcBsYeZed��Zd�Zedd�dd�Zed��Zd�Zd�Z RS( cCs:||_||_tj|�|_|jj�|_dS(N(tsqlite_filetrepoidRtconnectt_conntcursortcur(tselfRR((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyt__init__1s cCs#x|jd�D]}|dSWdS(s Unused, so no need to cache. s select count(*) from packagetagsiN(t _sql_exec(Rtn((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyt _getTagsCount:stfgetcCs |j�S(N(R (R((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyt<lambda>?stdocs"Number of entries in the pkgtag DBcGst|j||�|jS(s6 Exec SQL against an MD of the repo, return a cursor. (RR(RtsqlR((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyRBscCs�i}t|�\}}d|}d|d}|j||f�}xA|D]9\}}}||krtg||<n||j|�qLW|S(siSearch by tag name/glob Return dict of dict[packagename] = [stringmatched, stringmatched, ...]s<SELECT name, tag, score FROM packagetags where tag like ? %st%(RRtappend(Rttagtrestesctquerytrowstnametscore((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pytsearch_tagsIs cCs�i}t|�\}}d|}d|d}|j||f�}xA|D]9\}}}||krtg||<n||j|�qLW|S(shSearch by package name/glob. Return dict of dict[packagename] = [tag1, tag2, tag3, tag4, ...]s=SELECT name, tag, score FROM packagetags where name like ?%s R%(RRR&(RR,R(R)R*R+R'R-((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pytsearch_namesXs ( Rt __module__RRR tpropertytcountRR.R/(((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyR0s tPackageTagscBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs i|_dS(N(tdb_objs(R((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyRhscCs?||jkrtd|�nt||�}||j|<dS(NsAlready added tags from %s(R4RR(RRRtdbobj((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pytaddkscCs-||jkr|j|=n td|�dS(NsNo tag db for %s(R4R(RR((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pytremovers cCs�i}xg|jj�D]V}xM|j|�j�D]6\}}||krWg||<n||j|�q2WqWi}x-|j�D]\}}tj|�||<q�W|S(N(R4tvaluesR/titemstextendtmisctunique(RR,R(tptdttaglisttout((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyR/xs" cCs�i}xg|jj�D]V}xM|j|�j�D]6\}}||krWg||<n||j|�q2WqWi}x-|j�D]\}}tj|�||<q�W|S(N(R4R8R.R9R:R;R<(RttagnameR(R=R,R>R?((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyR.�s" (RR0RR6R7R/R.(((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyR3gs (RRRRtErrorsRRR;RtobjectRR3(((s1/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyt<module>s 7
/home/../lib/python2.7/site-packages/rhn/../yum/pkgtag_db.pyc