Current File : //lib/python2.7/site-packages/sos/policies/debian.pyo |
�
u��ec @ sL d d l m Z d d l m Z m Z d d l Z d e f d � � YZ d S( i����( t DebianPlugin( t PackageManagert LinuxPolicyNt DebianPolicyc B sx e Z d Z d Z d Z d Z d Z d Z d Z d Z e
g Z d d Z d
d � Z d
� Z e d � � Z d � Z RS( t Debians the Debian projects https://www.debian.org/t s* dpkg-query -W -f='${Package}|${Version}\n's
dpkg --verifyt friendlys9 /usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamess :/usr/local/sbin:/usr/local/binc C s_ t t | � j d | � d | _ t d | j d | j d | j d | � | _ t g | _
d S( Nt sysrootR t
query_commandt verify_commandt
verify_filtert chroot( t superR t __init__t
ticket_numberR t _debq_cmdt _debv_cmdt _debv_filtert package_managerR t valid_subclasses( t selfR ( ( s7 /usr/lib/python2.7/site-packages/sos/policies/debian.pyR
s c C s i d d 6j | | � S( Ns xz-utilst xz( t get( R t binary( ( s7 /usr/lib/python2.7/site-packages/sos/policies/debian.pyt _get_pkg_name_for_binary s
c C s t j j d � S( s[ This method checks to see if we are running on Debian.
It returns True or False.s /etc/debian_version( t ost patht isfile( t cls( ( s7 /usr/lib/python2.7/site-packages/sos/policies/debian.pyt check$ s c C se yL t d d � �3 } | j � } d | k r1 d Sd | k rA d SWd QXt SWn t k
r` t SXd S( Ns /etc/lsb-releaset rs
wheezy/sidi s
jessie/sidi ( t opent readt Falset IOError( R t fpt
rel_string( ( s7 /usr/lib/python2.7/site-packages/sos/policies/debian.pyt dist_version* s
N( t __name__t
__module__t distrot vendort
vendor_urlR R R R t name_patternR R t PATHt NoneR
R t classmethodR R% ( ( ( s7 /usr/lib/python2.7/site-packages/sos/policies/debian.pyR s
( t sos.pluginsR t sos.policiesR R R R ( ( ( s7 /usr/lib/python2.7/site-packages/sos/policies/debian.pyt <module> s