|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt-old/python27/lib/python2.7/site-packages/clselect/clselectpython/ |
Upload File : |
�
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&