| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/pkg/__pycache__/ |
Upload File : |
o
;j) � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZe� e
�ZdZed Z
dZdZdZdZd Zd
ZdZdZe
e e e e e e e Zd
Zdd� Zd#dd�Zd$dd�Zd#dd�Zd#dd�Zdd� Zdefdd�Zde de defdd �Z!d!d"� Z"dS )%z0
Common functions for working with RPM packages
� N)�x86_64Z x86_64_v2)Zathlon�amd64Zia32eZia64Zgeode)Zi386Zi486Zi586Zi686)�ppcZppc64Zppc64leZppc64iseriesZppc64pseries)Zs390Zs390x)ZsparcZsparcv8Zsparcv9Zsparcv9vZsparc64Zsparc64v)
�alphaZalphaev4Z alphaev45Zalphaev5Z alphaev56Z
alphapca56Zalphaev6Z alphaev67Z alphaev68Zalphaev7)Zarmv5telZ armv5tejlZarmv6lZarmv6hlZarmv7lZarmv7hlZarmv7hnl)�aarch64)Zsh3Zsh4Zsh4azS%{NAME}_|-%{EPOCH}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}_|-%{INSTALLTIME}c C sp t jj�d�rtjg d�dtjtjd��� d } nd�dd� t �
� d d
� D �dd
� �} t jj�| ��
� p7dS )
z2
Get the os architecture using rpm --eval
�rpm)r z--evalz%{_host_cpu}T)� close_fds�stdout�stderrr � c S s g | ]}|r|�qS � r ��.0�xr r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/pkg/rpm.py�
<listcomp>J s zget_osarch.<locals>.<listcomp>���N����unknown)�salt�utils�path�which�
subprocess�Popen�PIPE�communicate�join�platform�unameZstringutilsZto_str�strip)�retr r r �
get_osarch>