| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/monitor/ |
Upload File : |
ó
}9Rc @ sV d d l Z d d l m Z d d l m Z d d l m Z d e f d „ ƒ YZ d S( iÿÿÿÿN( t read_file( t APT_PREFERENCES_SIZE_LIMIT( t DataWatchert AptPreferencesc B sJ e Z d Z d Z d Z d Z d Z e Z d d „ Z d „ Z
d „ Z RS( s:
Report the system APT preferences configuration.
s apt-preferencest datai„ s /etc/aptc C s
| | _ d S( N( t _etc_apt_directory( t selft etc_apt_directory( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/aptpreferences.pyt __init__ s c
C s[ i } d „ } t j j | j d ƒ } t j j | ƒ rL | | ƒ | | <n t j j | j d ƒ } t j j | ƒ rÍ xT t j | ƒ D]@ } t j j | | ƒ } t j j | ƒ r† | | ƒ | | <q† q† Wn | i k rÝ d S| j t
| j ƒ ƒ } x^ | j ƒ D]P \ } } t
| ƒ t
| ƒ | k r| t
| ƒ } | | d | !| | <qqW| S( s· Return a C{dict} mapping APT preferences files to their contents.
If no APT preferences configuration is set at all on the system, then
simply return C{None}
c S s t t | ƒ ƒ S( N( t unicodeR ( t filename( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/aptpreferences.pyt <lambda> s u preferencesu
preferences.di N(
t ost patht joinR t existst isdirt listdirt isfilet Nonet
size_limitt lent keyst iteritems(
R R t read_unicodet preferences_filenamet preferences_directoryt entryR
t item_size_limitt contentst truncated_contents_size( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/aptpreferences.pyt get_data s* c C s | j d t ƒ S( Nt urgent( t exchanget True( R ( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/aptpreferences.pyt run7 s ( t __name__t
__module__t __doc__t persist_namet message_typet message_keyt run_intervalR R R R R# ( ( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/aptpreferences.pyR s ( R t landscape.lib.fsR t landscape.constantsR t landscape.monitor.pluginR R ( ( ( sD /usr/lib/python2.7/dist-packages/landscape/monitor/aptpreferences.pyt <module> s