a mi @ sR d dl Z d dlZd dlmZ d dlmZ d dlZd dlmZ d dl m Z zd dlZW n eyr d dl mZ Y n0 d dlZejdddZeed seje_ejZd d lmZ d dlmZ d dlmZ d d lmZ d dlmZ edddd eddeddeddeddeddeddeddeddeddgZG dd d eZd!d" ZdS )# N)Option)OptionParser)rpclib)sstrzrhn-client-toolsT)fallbackugettext)config)up2dateAuth) up2dateErrors) up2dateLog)up2dateUtilsz-vz --verbosecountzShow additional output)actiondefaulthelpz--proxystorezSpecify an http proxy to use)r r z--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 @ sd e Zd Zdd Zdd Zdd Zdd Zd d Zdd Zd d Z dd Z edd Zedd Z dS )RhnClic C s" t tt d| _d | _d | _d S )N)Zoption_listversion)r _optionsTabler _RhnCli__versionString optparseroptionsargsself r 9/usr/lib/python3.9/site-packages/up2date_client/rhncli.py__init__M s zRhnCli.__init__c C s6 t t_z | t| pd W n tyX tjt t d td Y n tjj y } zLtjt t dt d tjt t d td W Y d }~n|d }~0 ty tjt t dt d td Y n8 tjyd t d }|d u s2tt|dkrHtjt t d ntjt t d| Y n ty tjt t d t d td Y n ty Y n~ tjy tjt t d t d td Y n@ tjy0 tjt dtt d td Y n0 d S ) Nr z 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 exceptionsZSSLErrorexc_infoOSErrorr ZMalformedURIErrorlenstrIOError SystemExitr ZAuthenticationError xmlrpclibZ ProtocolError)r er r r runT s<