HEX
Server: Apache
System: Linux hp3-stn-1011028.hostingp3.local 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: csh958633 (951153)
PHP: 8.3.30
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: //lib/python2.7/site-packages/packagekit/backend.pyc
�
�^c@s�ddlmZddlZddlZddlZddlTdZdZdd�Z	d	d
�Z
defd��YZd
fd��YZ
dd�Zd�Zd�Zd�Zd�Zd�Zd�ZdS(i����(tprint_functionNi(t*t&t|sutf-8cCs=t|t�r9t|t�s9t||dd�}q9n|S(Nterrorstreplace(t
isinstancetstr(ttxttencoding((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt_to_unicode$sRcCs?t|t�r|St|t�r5|jdd|�St|�S(Nsutf-8R(RRtunicodetencode(RR((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt_to_utf8*s
tPkErrorcBseZd�Zd�ZRS(cCs||_||_dS(N(tcodetdetails(tselfRR((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt__init__2s	cCstd|j|jf�S(Ns%s: %s(treprRR(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt__str__5s(t__name__t
__module__RR(((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR1s	tPackageKitBaseBackendcBseZd�Zd�Zd�Zd�Zd;d�Zdd�Zd;d�Z	e
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d �Z#d!�Z$d"�Z%d#�Z&d$�Z'd%�Z(d&�Z)d'�Z*d(�Z+d)�Z,d*�Z-d+�Z.d,�Z/d-�Z0d.�Z1d/�Z2d0�Z3d1�Z4d2�Z5d3�Z6d4�Z7d5�Z8d6�Z9d7�Z:d8�Z;d9�Z<d:�Z=RS(<cCs�t|�||_t|_d|_t|_d|_t|_t|_d|_	d|_
ytjd|_Wnt
k
r�}td�nXy#tjddkr�t|_nWnt
k
r�}td�nXyttjd�|_Wnt
k
r}td	�nXy#tjd
dkr.t|_nWnt
k
rN}td�nXy#tjddkrqt|_nWnt
k
r�}td
�nXyttjd�|_	Wnt
k
r�}nXdS(NtCitLANGsError: No LANG envptNETWORKtTRUEsError: No NETWORK envptUIDsError: No UID envpt
BACKGROUNDsError: No BACKGROUND envptINTERACTIVEsError: No INTERACTIVE envpt	CACHE_AGE(tinstallExceptionHandlertcmdstFalset_lockedtlangthas_networktuidt
backgroundtinteractivet	cache_agetpercentage_oldtostenvirontKeyErrortprinttTruetint(RR!te((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR:sJ
									cCs
t|_dS(s3 Generic locking, overide and extend in child classN(R/R#(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytdoLocknscCs
t|_dS(s5 Generic unlocking, overide and extend in child classN(R"R#(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytunLockrscCs|jS(N(R#(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytisLockedvscCsw|dkr%tjjtd��nA|dks@||jkrftjjtd|��||_ntjj�dS(sg
        Write progress percentage
        @param percent: Progress percentage (int preferred)
        sno-percentage-updates
ispercentage	%i
N(tNonetsyststdouttwriteR
R*tflush(Rtpercent((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
percentageysicCs+tjjtd|��tjj�dS(sa
        Write progress speed
        @param bps: Progress speed (int, bytes per second)
        s	speed	%i
N(R6R7R8R
R9(Rtbps((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytspeed�scCs4tjjtd|||f��tjj�dS(s�
        send 'itemprogress' signal
        @param package_id: The package ID name, e.g. openoffice-clipart;2.6.22;ppc64;fedora
        @param percent: percentage of the current item (int preferred)
        sitem-progress	%s	%s	%i
N(R6R7R8R
R9(Rt
package_idtstatusR:((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
item_progress�s#cCsf|r|j�r|j�ntjjtd||f��tjj�|rbtjd�ndS(s�
        send 'error'
        @param err: Error Type (ERROR_NO_NETWORK, ERROR_NOT_SUPPORTED, ERROR_INTERNAL_ERROR)
        @param description: Error description
        @param exit: exit application with rc = 1, if true
        serror	%s	%s
i�N(R4R3R6R7R8R
R9texit(RterrtdescriptionRA((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyterror�s
 
cCs1tjjtd||f��tjj�dS(sQ
        send 'message' signal
        @param typ: MESSAGE_BROKEN_MIRROR
        smessage	%s	%s
N(R6R7R8R
R9(Rttyptmsg((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytmessage�s cCs4tjjtd|||f��tjj�dS(s�
        send 'package' signal
        @param info: the enumerated INFO_* string
        @param package_id: The package ID name, e.g. openoffice-clipart;2.6.22;ppc64;fedora
        @param summary: The package Summary
        spackage	%s	%s	%s
N(R6R7R8R
R9(RR>R?tsummary((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytpackage�s#cCs4tjjtd|||f��tjj�dS(s�
        send 'media-change-required' signal
        @param mtype: the enumerated MEDIA_TYPE_* string
        @param id: the localised label of the media
        @param text: the localised text describing the media
        smedia-change-required	%s	%s	%s
N(R6R7R8R
R9(Rtmtypetidttext((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytmedia_change_required�s#cCs4tjjtd|||f��tjj�dS(s�
        send 'distro-upgrade' signal
        @param dtype: the enumerated DISTRO_UPGRADE_* string
        @param name: The distro name, e.g. "fedora-9"
        @param summary: The localised distribution name and description
        sdistro-upgrade	%s	%s	%s
N(R6R7R8R
R9(RtdtypetnameRH((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytdistro_upgrade�s#cCs+tjjtd|��tjj�dS(s�
        send 'status' signal
        @param state: STATUS_DOWNLOAD, STATUS_INSTALL, STATUS_UPDATE, STATUS_REMOVE, STATUS_WAIT
        s
status	%s
N(R6R7R8R
R9(Rtstate((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR?�scCs:tjjtd||t|�f��tjj�dS(s�
        send 'repo-detail' signal
        @param repoid: The repo id tag
        @param state: false is repo is disabled else true.
        srepo-detail	%s	%s	%s
N(R6R7R8R
t_bool_to_stringR9(RtrepoidRORQ((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrepo_detail�s)cCs+tjjtd|��tjj�dS(sY
        send 'data' signal:
        @param data:  The current worked on package
        sdata	%s
N(R6R7R8R
R9(Rtdata((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyRU�sc
Cs@tjjtd|||||||f��tjj�dS(s�
        Send 'details' signal
        @param package_id: The package ID name, e.g. openoffice-clipart;2.6.22;ppc64;fedora
        @param summary: The package summary
        @param package_license: The license of the package
        @param group: The enumerated group
        @param desc: The multi line package description
        @param url: The upstream project homepage
        @param bytes: The size of the package, in bytes
        sdetails	%s	%s	%s	%s	%s	%s	%ld
N(R6R7R8R
R9(RR>RHtpackage_licensetgrouptdescturltbytes((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR�s/cCs1tjjtd||f��tjj�dS(sr
        Send 'files' signal
        @param file_list: List of the files in the package, separated by ';'
        sfiles	%s	%s
N(R6R7R8R
R9(RR>t	file_list((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytfiles�s cCs:tjjtd|||||f��tjj�dS(sl
        Send 'category' signal
        parent_id : A parent id, e.g. "admin" or "" if there is no parent
        cat_id    : a unique category id, e.g. "admin;network"
        name      : a verbose category name in current locale.
        summery   : a summary of the category in current locale.
        icon      : an icon name to represent the category
        scategory	%s	%s	%s	%s	%s
N(R6R7R8R
R9(Rt	parent_idtcat_idRORHticon((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytcategorys	)cCs'tjjtd��tjj�dS(s(
        Send 'finished' signal
        s	finished
N(R6R7R8R
R9(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytfinished
sc

CsOtjjtd|||||||||	|
||f��tjj�dS(s�
        Send 'updatedetail' signal
        @param package_id: The package ID name, e.g. openoffice-clipart;2.6.22;ppc64;fedora
        @param updates:
        @param obsoletes:
        @param vendor_url:
        @param bugzilla_url:
        @param cve_url:
        @param restart:
        @param update_text:
        @param changelog:
        @param state:
        @param issued:
        @param updated:
        s1updatedetail	%s	%s	%s	%s	%s	%s	%s	%s	%s	%s	%s	%s
N(R6R7R8R
R9(
RR>tupdatest	obsoletest
vendor_urltbugzilla_urltcve_urltrestarttupdate_textt	changelogRQtissuedtupdated((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
update_details>cCs1tjjtd||f��tjj�dS(s�
        Send 'requirerestart' signal
        @param restart_type: RESTART_SYSTEM, RESTART_APPLICATION, RESTART_SESSION
        @param details: Optional details about the restart
        srequirerestart	%s	%s
N(R6R7R8R
R9(Rtrestart_typeR((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrequire_restart's cCs@|rd}nd}tjjtd|��tjj�dS(sm
        send 'allow-cancel' signal:
        @param allow:  Allow the current process to be aborted.
        ttruetfalsesallow-cancel	%s
N(R6R7R8R
R9(RtallowRU((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytallow_cancel0s
	c		CsCtjjtd||||||||f��tjj�dS(s�
        send 'repo-signature-required' signal:
        @param package_id:      Id of the package needing a signature
        @param repo_name:       Name of the repository
        @param key_url:         URL which the user can use to verify the key
        @param key_userid:      Key userid
        @param key_id:          Key ID
        @param key_fingerprint: Full key fingerprint
        @param key_timestamp:   Key timestamp
        @param sig_type:        Key type (GPG)
        s0repo-signature-required	%s	%s	%s	%s	%s	%s	%s	%s
N(R6R7R8R
R9(	RR>t	repo_nametkey_urlt
key_useridtkey_idtkey_fingerprintt
key_timestamptsig_type((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrepo_signature_required<s#cCs7tjjtd||||f��tjj�dS(s
        send 'eula-required' signal:
        @param eula_id:         Id of the EULA
        @param package_id:      Id of the package needing a signature
        @param vendor_name:     Name of the vendor that wrote the EULA
        @param license_agreement: The license text
        seula-required	%s	%s	%s	%s
N(R6R7R8R
R9(Rteula_idR>tvendor_nametlicense_agreement((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
eula_requiredMscCs|jtddt�dS(ss
        Implement the {backend}-search-name functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDtERROR_NOT_SUPPORTEDR"(Rtfilterstvalues((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytsearch_name^scCs|jtddt�dS(sv
        Implement the {backend}-search-details functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytsearch_detailsescCs|jtddt�dS(st
        Implement the {backend}-search-group functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytsearch_grouplscCs|jtddt�dS(ss
        Implement the {backend}-search-file functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytsearch_filesscCs|jtddt�dS(sy
        Implement the {backend}-get-update-detail functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(Rtpackage_ids((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_update_detailzscCs|jtddt�dS(sr
        Implement the {backend}-depends-on functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�t	recursive((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
depends_on�scCs|jtddt�dS(st
        Implement the {backend}-get-packages functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_packages�scCs|jtddt�dS(ss
        Implement the {backend}-required-by functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrequired_by�scCs|jtddt�dS(su
        Implement the {backend}-what-provides functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�t
provides_typeR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
what_provides�scCs|jtddt�dS(su
        Implement the {backend}-update-system functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(Rt	distro_id((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytupgrade_system�scCs|jtddt�dS(su
        Implement the {backend}-refresh_cache functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(Rtforce((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
refresh_cache�scCs|jtddt�dS(so
        Implement the {backend}-install functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(Rttransaction_flagsR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytinstall_packages�scCs|jtddt�dS(sy
        Implement the {backend}-install-signature functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RtsigtypeRvR>((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytinstall_signature�scCs|jtddt�dS(s�
        Implement the {backend}-install_files functionality
        Install the package containing the inst_file file
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�t
inst_files((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
install_files�scCs|jtddt�dS(so
        Implement the {backend}-resolve functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytresolve�scCs|jtddt�dS(sn
        Implement the {backend}-remove functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�tallowdept
autoremove((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytremove_packages�scCs|jtddt�dS(sn
        Implement the {backend}-update functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytupdate_packages�scCs|jtddt�dS(ss
        Implement the {backend}-get-details functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_details�scCs|jtddt�dS(sy
        Implement the {backend}-get-details-local functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR\((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_details_local�scCs|jtddt�dS(sq
        Implement the {backend}-get-files functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt	get_files�scCs|jtddt�dS(ss
        Implement the {backend}-get-updates functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_updates�scCs|jtddt�dS(s{
        Implement the {backend}-get-distro-upgrades functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_distro_upgrades�scCs|jtddt�dS(ss
        Implement the {backend}-repo-enable functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RRStenable((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrepo_enable�scCs|jtddt�dS(su
        Implement the {backend}-repo-set-data functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RRSt	parametertvalue((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
repo_set_datascCs|jtddt�dS(su
        Implement the {backend}-get-repo-list functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
get_repo_listscCs|jtddt�dS(s~
        Implement the {backend}-repo-signature-install functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR>((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrepo_signature_installscCs|jtddt�dS(sy
        Implement the {backend}-download-packages functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(Rt	directoryR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytdownload_packagesscCs|jtddt�dS(sr
        Implement the {backend}-set-locale functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
set_localescCs|jtddt�dS(sv
        Implement the {backend}-get-categories functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(R((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_categories#scCs|jtddt�dS(su
        Implement the {backend}-repair-system functionality
        Needed to be implemented in a sub class
        s0This function is not implemented in this backendRAN(RDRR"(RR�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
repair_system*scCstS(s6
        Custom Traceback Handler
        this is called by the ExceptionHandler
        return True if the exception is handled in the method.
        return False if to do the default action an signal an error
        to packagekit.
        Overload this method if you what handle special Tracebacks
        (R"(Rttb((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytcustomTracebackHandler2s	cCsQtjj|jd�d}|jd�d}|jd}|j||�dS(sJ
        interprete the command from the calling args (self.cmds)
        iit.N(R+tpathtsplitR!tdispatch_command(Rtfnametcmdtargs((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytrun_command=s
cCs)|dkrF|d}|djt�}|j||�|j�n�|dkr�|djd�}|djt�}t|d�}|j|||�|j�n}|dkr�|djt�}|j|�|j�nD|dkr|djt�}|j|�|j�n|d	krS|djt�}|j|�|j�n�|d
kr�|djd�}|j	|�|j�n�|dkr�|djd�}|j
|�|j�n`|dkr'|djd�}|djt�}t|d�}|j|||�|j�n�|d
kr`|djt�}|j|�|j�n�|dkr�|j
�|j�n�|dkr�|djd�}|j|�|j�ni|dkr|djd�}|djt�}	|j||	�|j�n|dkrZ|djd�}|djt�}|j||�|j�n�|dkr�|d}
|d}|d}|j|
||�|j�n�|dkr�t|d�}
|j|
�|j�nK|dkrO|djd�}|djt�}t|d�}t|d�}|j||||�|j�n�|dkr�|d}t|d�}|j||�|j�n�|dkr�|d}|d}|d}|j|||�|j�nI|dkr+|djd�}|djt�}|j||�|j�n�|dkr�|djd�}t|d�jt�}|j||�|j�n�|dkr�|djd�}|djt�}|j||�|j�nV|dkr|djd�}|djt�}|j||�|j�n|dkrs|djd�}t|d�jt�}|j||�|j�n�|dkr�|d}|j|�|j�n�|dkr�|djd�}|djt�}|j||�|j�n3|dkrT|djd�}|d}t|d�jt�}|j|||�|j�n�|d kr�|d}|j |�|j�n�|d!kr�|j!�|j�n~|d"kr�|j"|d�|j�nT|d#kr�|j#|d�|j�n*d$|}|j$t%|d%t&�|j�dS(&Nsdownload-packagesiis
depends-ont;isget-detailssget-details-locals	get-filessget-packagess
get-repo-listsrequired-bysget-update-detailsget-distro-upgradessget-updatess
install-filessinstall-packagessinstall-signatures
refresh-cachesremove-packagesisrepo-enables
repo-set-dataR�ssearch-detailsssearch-filessearch-groupssearch-namessignature-installsupdate-packagess
what-providess
set-localesget-categoriessupgrade-systems
repair-systemscommand '%s' is not knownRA('R�tPACKAGE_IDS_DELIMR�Rat
_text_to_boolR�R�R�R�R�R�R�R�R�R�tFILENAME_DELIMR�R�R�R�R�R�R�R�R
R�R�R�R�R�R�R�R�R�R�R�RDtERROR_INTERNAL_ERRORR"(RR�R�R�R�R�R�R\R�t
files_to_instR�RvR>R�t	allowdepsR�RSRQtparaR�R�RIR�Rterrmsg((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR�Fs





















































cCst|�dkr-|j|d|d�nx�tr�ytjj�jd�}WnYtk
r�}|jt	dt
|��n-tk
r�}|jtdt
|��nX|s�|dkr�Pn|j
d�}|j|d|d�q0W|j�r	|j�ntjd�dS(Niis
scould not read from stdin: %ss process was killed by ctrl-c: %sRAs	(tlenR�R/R6tstdintreadlinetstriptIOErrorRDtERROR_TRANSACTION_CANCELLEDRtKeyboardInterrupttERROR_PROCESS_KILLR�R4R3RA(RR�tlineR1((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
dispatcher�s 	
N(>RRRR2R3R4R5R;R=R@R/RDRGRIRMRPR?RTRURR\R`RaRlRnRrRzR~R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR8st	4						
	
	
																																																�cCs7t|t�s't||dd�}n|jdd�S(sQ
    Format a string to be used on stdout for communication with the daemon.
    RRs
R�(RRR(RLR	((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt
format_string�scCs|j�dkrtStS(s$Convert a string to a boolean value.tyesRo(syesstrue(tlowerR/R"(RL((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR��scCs|r
dSdS(NRoRp((R�((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyRR�scCsdj||||f�S(sReturns a package id.R�(tjoin(ROtversiontarchRU((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytget_package_id�scCs|jdd�S(s^
    Returns a tuple with the name, version, arch and data component of a
    package id.
    R�i(R�(RK((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytsplit_package_idscCs�tjt_|j|�s�tj|�}dt|�}|dt|�7}xK|D]C}|\}}}	}
|d|t|�|	f7}|d|
7}qUW|jt|dt	�ndS(NsError Type: %s;sError Value: %s;s  File : %s, line %s, in %s;s    %s;RA(
R6t__excepthook__t
excepthookR�t	tracebackt
extract_tbRRDR�R/(RER�R�tbasetetbR�ttubtftltmtc((s6/usr/lib/python2.7/site-packages/packagekit/backend.pytexceptionHandler
s
cs�fd�t_dS(Ncst|||��S(N(R�(RER�R�(R�(s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt<lambda>s(R6R�(R�((R�s6/usr/lib/python2.7/site-packages/packagekit/backend.pyR s(t
__future__RR6R�tos.pathR+tenumsR�R�R
R
t	ExceptionRRR�R�RRR�R�R�R (((s6/usr/lib/python2.7/site-packages/packagekit/backend.pyt<module>s&
���