File: //usr/share/yum-plugins/ulninfo.pyc
�
�(Vc @ s� d Z d d l Z d d l Z d d l Z e j j d � d d l m Z d d l m Z d d l m Z d d l m
Z
d Z d � Z d
e
f d � � YZ d e f d
� � YZ d � Z d S( sg
Yum plugin for ULN access.
This plugin provides ULN license, notification, entitlement to yum client.
i����Ns /usr/share/rhn/( t config( t
rhnChannel( t up2dateAuth( t
up2dateErrorss 2.5c
C s | j � } | j d d | j � } y t j d | � } Wn t j k
rQ d SX| s\ d Sy t j � } Wn t j k
r� d SXt
j � } | d j d � d } | d k r� d SyF t
| � } i } | r� | d r� i | d 6} q� i | d 6} n Wn t k
rd SXt j j t j d
� } | d k r�t j d }
t } d
|
k s�d |
k s�|
g k s�d |
k s�d |
k r�t } d Sn x� | D]y } | d r�y\ | r�t j | � }
t j |
� } t j | � n t j d | d | d � j � GHWqqXq�q�Wd S( Nt maint timeoutt serverURLt /i s linux-update.oracle.comt useNoSSLForPackagest httpt httpsi t yumi s --helps --versions -Cs --cacheonlyt versions https://s /license/%st label( t getConft confFloatR R t getLoginInfoR t RhnServerExceptionR t getChannelDetailst NoChannelsErrorR t initUp2dateConfigt splitt
get_proxy_urlt BadProxyConfigt ost patht basenamet syst argvt Truet Falset urllib2t ProxyHandlert build_openert install_openert urlopent read( t conduitt conduit_confR t
login_infot svrChannelst up2date_cfgt base_urlt proxy_urlt
proxy_dictt prog_namet cmd_argst uln_enabledt channelt pt opener( ( s! /usr/share/yum-plugins/ulninfo.pyt init_hook sT
<
(t BadConfigc B s e Z RS( ( t __name__t
__module__( ( ( s! /usr/share/yum-plugins/ulninfo.pyR4 V s R c B s e Z RS( ( R5 R6 ( ( ( s! /usr/share/yum-plugins/ulninfo.pyR Y s c C s8 | d s d Sd } | d r'