Current Path : /usr/lib/python2.7/dist-packages/landscape/monitor/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyc |
ó ÍÿŠTc @ sX d d l Z d d l Z d d l m Z d d l m Z d Z d e f d „ ƒ YZ d S( iÿÿÿÿN( t read_file( t MonitorPlugins /var/run/reboot-requiredt RebootRequiredc B s_ e Z d Z d Z d Z d Z e Z e d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s± Report whether the system requires a reboot. @param reboot_required_filename: The path to the flag file that indicates if the system needs to be rebooted. s reboot-requiredt packagei„ c C s | | _ | d | _ d S( Ns .pkgs( t _flag_filenamet _packages_filename( t selft reboot_required_filename( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt __init__ s c C s t j j | j ƒ S( s@ Return a boolean indicating whether the computer needs a reboot.( t ost patht existsR ( R ( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt _get_flag s c C sN t j j | j ƒ s g St | j ƒ j ƒ } t d „ | Dƒ ƒ } t | ƒ S( s; Return the list of packages that required a reboot, if any.c s s* | ] } | r | j ƒ j d ƒ Vq d S( s utf-8N( t stript decode( t .0t line( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pys <genexpr>&