VULN_CHECK_I913V6 ;j ddlZddlZddlmZddlmZddlZddlmZddl m Z  ddl Z ddlZej ddZeed seje_ej&Zdd lmZdd lmZdd lmZdd lmZddlmZeddddededdededdededdededdedgZGdd eZd!Zy#e $r ddl mZ YwxYw)"N)Option) OptionParser)rpclib)sstrzrhn-client-toolsT)fallbackugettext)config) up2dateAuth) up2dateErrors) up2dateLog) up2dateUtilsz-vz --verbosecountzShow additional output)actiondefaulthelpz--proxystorezSpecify an http proxy to use)rrz --proxyUserz:Specify a username to use with an authenticated http proxyz--proxyPasswordz:Specify a password to use with an authenticated http proxyz--debug store_truez&Enable debug output (network requests)c\eZdZdZdZdZdZdZdZdZ dZ e d Z e d Z y ) RhnClicptttj|_d|_d|_y)N) option_listversion)r _optionsTabler_RhnCli__versionString optparseroptionsargsselfs :/usr/lib/python3.12/site-packages/up2date_client/rhncli.py__init__zRhnCli.__init__Ms,%M,,.0  c ttt_ |jtj|j xsdy#t $rItjjttdtjdYytjj$r}tjjttdtjdztjjttdtjdYd}~yd}~wt$ratjjttdtjdztjdYyt j"$rtjd}|t%t'|dk(r3tjjttdYytjjttd|zYyt($ratjjttd tjdztjdYyt*$rt,j.$ratjjttd tjdztjdYyt0j2$ratjjtd t'tjdztjd YywxYw) Nrz Aborted. zThere was an SSL error: %s zqA common cause of this error is the system time being incorrect. Verify that the time on this system is correct. z$An unexpected OS error occurred: %s z1A connection was attempted with a malformed URI. z5A connection was attempted with a malformed URI: %s. z%There was some sort of I/O error: %s z&There was an authentication error: %s zXMLRPC ProtocolError: %s )exceptionHandlersys excepthook initializeexitmainKeyboardInterruptstderrwriter_requests exceptionsSSLErrorexc_infoOSErrorrMalformedURIErrorlenstrIOError SystemExitr AuthenticationError xmlrpclib ProtocolError)res r runz RhnCli.runTst)  OO  HHTYY[%A &   JJ  T!N"34 5 HHQK""++  JJ  T!$B"CcllnUVFW"WX Y JJ  T!%S#TU V HHQKK  JJ  T!$K"Ls||~^_O`"`a b HHQK'' h q!AyCAK1,   a(\&]!^_   a(`&ade&e!fg  JJ  T!$L"MPSP\P\P^_`Pa"ab c HHQK  00  JJ  T!$M"NQTQ]Q]Q_`aQb"bc d HHQK&&  JJ  T">S\\^TUEVAW"WX Y HHQK sH7A AN7N76BE  A*N76A3N7+4N7!A&N7 A9N7A0N76N7c|jj\|_|_tj |jj tjdk7rEtdtjdz}|j|tjd|jjr|j|j!y)NrzYou must be root to run %sr$)r parse_argsrrr_RhnCli__setDebugLevelverboseosgeteuidr/r'argv_warning_dialogr*debug_initialize_debug_network_logs_RhnCli__updateProxyConfig)rrootWarningMsgs r r)zRhnCli.initializexs$(NN$=$=$?!tyt||334 ::<1 ;r)r+rHrFrIrl staticmethodrrAr"r rrKsS"H# "&$*" ,,r"rc4tj}tjj t t ddzt|drItjj t |jdz|j|||nGtjj t t|dz|j|||tjj t t ddzy)NzAn error has occurred: errmsgz)See /var/log/up2date for more information) r initLogr'r-r.rr/hasattrrz log_exceptionr7)typevaluetblogs r r&r&s    CJJT!45<=>uh ell+d23 $r* c$i$./0 $r*JJT!GH4OPQr")r'rCoptparserrrequests.exceptionsr0rhnrrhn.i18nrr;rR xmlrpc.clientclientgettext translationtr|rr/up2date_clientr r r r r robjectrr&rwr"r rsD !&G*T:q*AJJJ!&(%' 4Wa ' (* 9W + ,. = I JL W I JL 9\ 5 68  x,Vx,t Ro&%&sC)) C76C7