관리-도구
편집 파일: pkgmanager.cpython-37.pyc
B �v6d � @ sl d dl mZ d dl mZ d dl mZ d dlZd dlmZ ddlmZm Z m Z mZmZm Z G dd � d e�ZdS ) � )�print_function)�division)�absolute_importN)�BasePkgManager� )� CONFIG_DIR�is_major_version�create_config_dirs� ALT_NAMES�scan_node_versions�ALT_NODE_PREFIXc s� e Zd ZdZ� fdd�ZeZdZeZ dZ d�ede de g�Zd�ed e de g�Z d d� Zdd � Zdd� Zdd� Zdd� Zedd� �Z� ZS )� PkgManagerz� Class responsible for all interactions with Yum, NodeJS version installation/removal and gathering info about already installed versions c s t t| ��� d S )N)�superr �__init__)�self)� __class__� �S/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectnodejs/pkgmanager.pyr s zPkgManager.__init__z)LANG=C yum --disableplugin=fastestmirror z!&>/var/log/cl-nodejs-last-yum.log� z-y groupinstall z{} z7--enablerepo=cloudlinux-updates-testing -y groupremove c C s t d�|� S )Nz{}/.lock)r �format)r �versionr r r �_get_lock_file_path@ s zPkgManager._get_lock_file_pathc C s&