9 Star 0 Fork 24

src-openEuler/python-blivet

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
blivet-3.4.2-sw.patch 760 Bytes
Copy Edit Raw Blame History
wuzx authored 2022-11-03 19:50 +08:00 . Add sw64 architecture
diff -Naur blivet-3.4.2.org/blivet/arch.py blivet-3.4.2.sw/blivet/arch.py
--- blivet-3.4.2.org/blivet/arch.py 2022-09-05 16:07:41.840000000 +0000
+++ blivet-3.4.2.sw/blivet/arch.py 2022-09-05 16:09:17.720000000 +0000
@@ -304,6 +304,15 @@
return os.uname()[4] == 'ia64'
+def is_sw_64():
+ """
+ :return: True if the hardware supports Sw_64, False otherwise.
+ :rtype: boolean
+
+ """
+ return os.uname()[4].startswith('sw_64')
+
+
def is_alpha():
"""
:return: True if the hardware supports Alpha, False otherwise.
@@ -351,6 +360,8 @@
return os.uname()[4]
elif is_aarch64():
return 'aarch64'
+ elif is_sw_64():
+ return 'sw_64'
elif is_alpha():
return 'alpha'
elif is_arm():
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-blivet.git
git@gitee.com:src-openeuler/python-blivet.git
src-openeuler
python-blivet
python-blivet
master

Search