代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/sos 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff -Naur sos-4.3.orig/sos/policies/distros/opencloudos.py sos-4.3/sos/policies/distros/opencloudos.py
--- sos-4.3.orig/sos/policies/distros/opencloudos.py 1970-01-01 08:00:00.000000000 +0800
+++ sos-4.3/sos/policies/distros/opencloudos.py 2022-11-10 20:44:18.454539013 +0800
@@ -0,0 +1,41 @@
+# This file is part of the sos project: https://github.com/sosreport/sos
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions of
+# version 2 of the GNU General Public License.
+#
+# See the LICENSE file in the source distribution for further information.
+
+from sos.policies.distros.redhat import RedHatPolicy, OS_RELEASE
+import os
+
+
+class OpenCloudOSPolicy(RedHatPolicy):
+ distro = "OpenCloudOS Stream"
+ vendor = "OpenCloudOS"
+ vendor_urls = [('Distribution Website', 'https://www.opencloudos.org/')]
+
+ def __init__(self, sysroot=None, init=None, probe_runtime=True,
+ remote_exec=None):
+ super(OpenCloudOSPolicy, self).__init__(sysroot=sysroot, init=init,
+ probe_runtime=probe_runtime,
+ remote_exec=remote_exec)
+
+ @classmethod
+ def check(cls, remote=''):
+
+ if remote:
+ return cls.distro in remote
+
+ if not os.path.exists(OS_RELEASE):
+ return False
+
+ with open(OS_RELEASE, 'r') as f:
+ for line in f:
+ if line.startswith('NAME'):
+ if 'OpenCloudOS Stream' in line:
+ return True
+
+ return False
+
+# vim: set et ts=4 sw=4 :
\ No newline at end of file
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。