%PDF- %PDF-
Direktori : /opt/alt/python27/lib/python2.7/site-packages/clselect/clselectpython/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/clselect/clselectpython/pkgmanager.pyc |
� i�B^c @` s� d d l m Z d d l m Z d d l m Z d d l Z d d l m Z d d l m Z m Z m Z m Z m Z m Z d e f d � � YZ d S( i ( t print_function( t division( t absolute_importN( t BasePkgManageri ( t scan_python_versionst is_major_versiont CONFIG_DIRt create_config_dirst ALT_NAMESt ALT_PYTHON_PREFIXt PkgManagerc B` s� e Z d Z d � Z e Z d Z d Z e Z d Z d j e d e d e g � Z d j e d e d e g � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � � Z RS( s� Class responsible for all interactions with Yum, python version installation/removal and gathering info about already installed versions c C` s t � d S( N( R ( t self( ( sS /opt/alt/python27/lib/python2.7/site-packages/clselect/clselectpython/pkgmanager.pyt _create_config_dirs s s {yum_cmd} list '{alt_names}*' --disablerepo='*' --enablerepo='cloudlinux-*' {disable_testing} 2>/dev/null | grep -io {alt_names}[[:digit:]][[:digit:]] | uniq > {cache_file}.tmp; mv {cache_file}.tmp {cache_file}; rm -f {cache_file}.tmp; s) LANG=C yum --disableplugin=fastestmirror s! &>/var/log/cl-python-last-yum.logt s -y install s {} s -y remove c C` s t � S( N( R ( R ( ( sS /opt/alt/python27/lib/python2.7/site-packages/clselect/clselectpython/pkgmanager.pyt _scan_interpreter_versionsE s c C` s t d j | j d d � � S( Ns {}/.lockt .R ( R t formatt replace( R t version( ( sS /opt/alt/python27/lib/python2.7/site-packages/clselect/clselectpython/pkgmanager.pyt _get_lock_file_pathH s c C` s^ | j � } | d k r&