관리-도구
편집 파일: ubuntu.pyo
� u��ec @� s\ d d l m Z d d l m Z m Z d d l m Z d d l Z d e f d � � YZ d S( i����( t with_statement( t UbuntuPlugint DebianPlugin( t DebianPolicyNt UbuntuPolicyc B� s{ e Z d Z d Z d Z d d Z d Z d Z d Z d Z d d � Z e d � � Z d � Z d � Z d � Z d � Z RS( t Ubuntut Canonicals https://www.ubuntu.com/s9 /usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamess) :/usr/local/sbin:/usr/local/bin:/snap/bins, https://files.support.canonical.com/uploads/t ubuntut putc C� s, t t | � j d | � t t g | _ d S( Nt sysroot( t superR t __init__R R t valid_subclasses( t selfR ( ( s7 /usr/lib/python2.7/site-packages/sos/policies/ubuntu.pyR s c C� sE y, t d d � � } d | j � k SWd QXWn t k r@ t SXd S( s[ This method checks to see if we are running on Ubuntu. It returns True or False.s /etc/lsb-releaset rR N( t opent readt IOErrort False( t clst fp( ( s7 /usr/lib/python2.7/site-packages/sos/policies/ubuntu.pyt check s c C� sy y` t d d � �G } | j � } x1 | D]) } d | k r( | j d � d j � Sq( WWd QXt SWn t k rt t SXd S( s7 Returns the version stated in DISTRIB_RELEASE s /etc/lsb-releaseR t DISTRIB_RELEASEt =i N( R t readlinest splitt stripR R ( R R t linest line( ( s7 /usr/lib/python2.7/site-packages/sos/policies/ubuntu.pyt dist_version"