403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  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
Ñò
°séJc@sUddkTddkTddkZddkZeidƒZdefd„ƒYZdS(iÿÿÿÿ(t*Ns
(qt)|(gtk)t	YumFiltercBsweZdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
RS(
tnonecCseti||ƒtiiƒ}|djoddddg|_n
|g|_|iidƒdS(Nti386ti486ti586ti686tnoarch(tPackagekitFiltert__init__trpmUtilstarchtgetBaseArcht
basearch_listtappend(tselftfltlisttbasearch((s./usr/share/PackageKit/helpers/yum/yumFilter.pyR	 s
cCsC|idƒotS|idƒotS|idƒotStS(Ns
-debuginfos-devels-libs(tendswithtFalsetTrue(Rtrepo((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_is_main_package)sc	CsÁg}g}g}xs|D]k\}}|io9tii|iƒd}|i||||ifƒq|i||d|ifƒqWxg|D]_\}}}}||ijo=||f|jo*|i||fƒ|i||fƒqqWxn|D]f\}}}}||f|joA|i|iƒo*|i||fƒ|i||fƒq_qùqùWxW|D]O\}}}}||f|jo*|i||fƒ|i||fƒqjqjW|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_filter2s4
  #cCsh}x||D]t\}}|i|ƒ}|i|i|f}||jo'|||djoq
n||=n||f||<q
W|iƒS(sC
        Only return the newest package for each name.arch
        i(t_pkg_is_installedRRtvalues(RtpkglisttnewestR!tstatetinsttkey((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_do_newest_filtering]s
cCsYt|ijo|i|iƒ|_nt|ijo|i|iƒ|_n|iS(s6 do filtering we couldn't do when generating the list (tFILTER_BASENAMERR$Rt
FILTER_NEWESTR,(R((s./usr/share/PackageKit/helpers/yum/yumFilter.pytpost_processts
cCs&d|i|i|i|i|ifS(s8
        Return a unique string for the package
        s%s-%s:%s-%s.%s(RtepochRtreleaseR(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_pkg_get_uniquescCs|iS(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|iidjS(s5
        Return if the package is installed.
        t	installed(Rtid(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyR%‹scCsd|iidƒotS|iidƒotS|iidƒotS|iidƒotStS(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‘scCs7x0|iD]%}|d}ti|ƒotSq
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|i|ijotStS(s7
        Return if the package is native arch.
        (RR
RR(RR!((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt_pkg_is_arch©scCs|i|iƒ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,R/R2R3R%R6R<R=R@(((s./usr/share/PackageKit/helpers/yum/yumFilter.pyRs				+							
	(tpackagekit.enumstpackagekit.filterR
tretcompileR8RR(((s./usr/share/PackageKit/helpers/yum/yumFilter.pyt<module>s




Youez - 2016 - github.com/yon3zu
LinuXploit