openubmc-bingo 0.6.51__py3-none-any.whl → 0.6.54__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openubmc-bingo might be problematic. Click here for more details.
- bmcgo/__init__.py +1 -1
- bmcgo/cli/cli.py +0 -8
- bmcgo/utils/component_version_check.py +4 -4
- bmcgo/utils/config.py +2 -0
- bmcgo/utils/tools.py +7 -4
- {openubmc_bingo-0.6.51.dist-info → openubmc_bingo-0.6.54.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.51.dist-info → openubmc_bingo-0.6.54.dist-info}/RECORD +10 -10
- {openubmc_bingo-0.6.51.dist-info → openubmc_bingo-0.6.54.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.51.dist-info → openubmc_bingo-0.6.54.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.51.dist-info → openubmc_bingo-0.6.54.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
bmcgo/cli/cli.py
CHANGED
|
@@ -451,14 +451,6 @@ class Command(object):
|
|
|
451
451
|
"""检查当前环境中正在使用的bmc studio版本,
|
|
452
452
|
优先通过pip获取,获取不到通过bmc_studio/mds/server获取
|
|
453
453
|
"""
|
|
454
|
-
package_info = tools.run_command('pip3 show hw_ibmc_bmc_studio', sudo=True,
|
|
455
|
-
command_echo=False, ignore_error=True, capture_output=True)
|
|
456
|
-
version = ""
|
|
457
|
-
if package_info:
|
|
458
|
-
version = package_info.stdout.replace("\n", " ")
|
|
459
|
-
match = re.match(r".*([0-9]+\.[0-9]+\.[0-9]+)", version)
|
|
460
|
-
if match:
|
|
461
|
-
return match.group(1)
|
|
462
454
|
studio_path = tools.get_studio_path()
|
|
463
455
|
bmc_studio_conf = os.path.join(f"{studio_path}/mds/service.json")
|
|
464
456
|
if not os.path.isfile(bmc_studio_conf):
|
|
@@ -94,7 +94,7 @@ class ComponentVersionCheck:
|
|
|
94
94
|
def get_dict(self):
|
|
95
95
|
self.openubmc_folder()
|
|
96
96
|
self.manifest_dict = self.generate_manifest_dict()
|
|
97
|
-
self.ibmc_lock_dict = self.
|
|
97
|
+
self.ibmc_lock_dict = self.generate_bmc_lock_dict()
|
|
98
98
|
|
|
99
99
|
def generate_manifest_dict(self) -> dict:
|
|
100
100
|
"""根据 manifest.yml(conan目录) 配置生成 组件名: 组件配置 的字典
|
|
@@ -106,8 +106,8 @@ class ComponentVersionCheck:
|
|
|
106
106
|
manifest_dict = {x[misc.CONAN].split('/')[0]: x[misc.CONAN].split('@')[0] for x in dependency_list}
|
|
107
107
|
return manifest_dict
|
|
108
108
|
|
|
109
|
-
def
|
|
110
|
-
"""根据
|
|
109
|
+
def generate_bmc_lock_dict(self) -> dict:
|
|
110
|
+
"""根据 bmc.lock 配置生成 组件名: 组件配置 的字典
|
|
111
111
|
|
|
112
112
|
Returns:
|
|
113
113
|
dict: 返回 组件名: 组件配置 的字典
|
|
@@ -116,7 +116,7 @@ class ComponentVersionCheck:
|
|
|
116
116
|
component_list = self.ibmc_lock["graph_lock"]["nodes"]
|
|
117
117
|
ibmc_lock_dict = {x["ref"].split('/')[0]: x["ref"].split('@')[0]
|
|
118
118
|
for x in [component_conf for _, component_conf in component_list.items()]}
|
|
119
|
-
ibmc_lock_dict.pop(
|
|
119
|
+
ibmc_lock_dict.pop(misc.community_name())
|
|
120
120
|
else:
|
|
121
121
|
component_list = self.ibmc_lock["requires"]
|
|
122
122
|
ibmc_lock_dict = {x.split('/')[0]: x.split('@')[0] for x in component_list}
|
bmcgo/utils/config.py
CHANGED
|
@@ -762,6 +762,8 @@ class Config:
|
|
|
762
762
|
|
|
763
763
|
def merge_dependencies(self, dependencies, subsys_comps, base_deps):
|
|
764
764
|
for com_package in dependencies:
|
|
765
|
+
if "overwrite" in com_package:
|
|
766
|
+
del com_package["overwrite"]
|
|
765
767
|
com_package_split = com_package.get(misc.CONAN).split("/")
|
|
766
768
|
if len(com_package_split) > 2:
|
|
767
769
|
continue
|
bmcgo/utils/tools.py
CHANGED
|
@@ -245,16 +245,19 @@ class Tools():
|
|
|
245
245
|
pkg_name = pkg_info[0]
|
|
246
246
|
has_version = len(pkg_info) > 1
|
|
247
247
|
for sub in base_manifest.get(dependency_type, {}):
|
|
248
|
+
overwrite = sub.get("overwrite", False)
|
|
248
249
|
sub_name = sub.get(misc.CONAN)
|
|
249
250
|
sub_pkg_name = sub_name.split("/")[0]
|
|
250
251
|
# 上下层具有相同组件名的组件
|
|
251
252
|
if pkg_name == sub_pkg_name:
|
|
252
|
-
if has_version:
|
|
253
|
+
if not has_version:
|
|
254
|
+
com_package[misc.CONAN] = sub_name
|
|
255
|
+
elif overwrite:
|
|
256
|
+
com_package[misc.CONAN] = name
|
|
257
|
+
else:
|
|
253
258
|
raise errors.BmcGoException(
|
|
254
259
|
"配置错误: 不允许删除平台组件或定制平台组件版本号{}".format(name)
|
|
255
260
|
)
|
|
256
|
-
else:
|
|
257
|
-
com_package[misc.CONAN] = sub_name
|
|
258
261
|
break
|
|
259
262
|
|
|
260
263
|
@staticmethod
|
|
@@ -630,7 +633,7 @@ class Tools():
|
|
|
630
633
|
self.run_command(f"chown {user_group} {img_path}", sudo=True)
|
|
631
634
|
|
|
632
635
|
def get_studio_path(self):
|
|
633
|
-
ret = self.run_command("whereis bmc_studio", sudo=
|
|
636
|
+
ret = self.run_command("whereis bmc_studio", sudo=False, ignore_error=True,
|
|
634
637
|
command_echo=False, capture_output=True).stdout
|
|
635
638
|
if not ret:
|
|
636
639
|
return ""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256=
|
|
1
|
+
bmcgo/__init__.py,sha256=Y20uB-lzoOxGYwmJ3S3NWAJ5M7IU3uSDByPsqPFXXCw,562
|
|
2
2
|
bmcgo/bmcgo.py,sha256=uD4TsfjrFB5aQPIS6WRUVc9ShXX-dSImY9ezkB13g1w,685
|
|
3
3
|
bmcgo/bmcgo_config.py,sha256=-HZcTsnccE5wUsgGJ59kq8sDdu8feftIbpyoFvyvBhU,11264
|
|
4
4
|
bmcgo/errors.py,sha256=QW1ndrJcJ2Ws7riOznPKVvZsNlrYk73eZol7w8gJTPU,3076
|
|
@@ -7,7 +7,7 @@ bmcgo/logger.py,sha256=rcMqJnyQ5Ag3k04KLEskrG8ZJ508OOU_JH4fMFiGOqQ,6644
|
|
|
7
7
|
bmcgo/misc.py,sha256=w0vzsD7uzrsxTly5Y1viLgYTKHhLP4sxa499XwbqHnU,6986
|
|
8
8
|
bmcgo/worker.py,sha256=OXz5Gam3pmZjgQeoGJrYy73ZrQszCOxk9X19nbeBI_A,15710
|
|
9
9
|
bmcgo/cli/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
10
|
-
bmcgo/cli/cli.py,sha256=
|
|
10
|
+
bmcgo/cli/cli.py,sha256=n1871pHyqnbiTS-jQ6hC2G_xKNgPt8hadtXl1B2KMsM,27017
|
|
11
11
|
bmcgo/cli/config.conan2.yaml,sha256=SAtM_6_qOjZbkgUT5fzWbhbq4aWCayqE8o4xJ2vBRww,261
|
|
12
12
|
bmcgo/cli/config.yaml,sha256=tbnFhz2TTrl2-ALpHHujbXB1ymZpjGC4f0zTfqfUZfM,194
|
|
13
13
|
bmcgo/codegen/__init__.py,sha256=eplRBfR_obzVWMQtIeX1RRq6DOEezBx_l1EqcZYLRPM,775
|
|
@@ -244,15 +244,15 @@ bmcgo/utils/buffer.py,sha256=t1SkWntWksboNFMPsltslwRdXZi3FAe8eV0JAAE7Vto,4004
|
|
|
244
244
|
bmcgo/utils/build_conans.py,sha256=3afY0XOwFtfcKud2yp6nODIuPoMKjjsoAl5AV8GbJ6w,8997
|
|
245
245
|
bmcgo/utils/combine_json_schemas.py,sha256=08JrAlLeo_JgUqzYcZNgSwJZPLfjbWVJ4esPPt9bPMY,7967
|
|
246
246
|
bmcgo/utils/component_post.py,sha256=rTSMv36geI6rbm6ZFQenZfG0mn1nVPpdJqn7g8bYtKA,2330
|
|
247
|
-
bmcgo/utils/component_version_check.py,sha256=
|
|
248
|
-
bmcgo/utils/config.py,sha256=
|
|
247
|
+
bmcgo/utils/component_version_check.py,sha256=ukc-H-A4ljkOShzVtkYWL0oTIYwxgDIZtP-fPqqHnRY,6274
|
|
248
|
+
bmcgo/utils/config.py,sha256=rXk3_UbweJSdDcj8ISgXKJHcjg9erGSPjf9BJ1nODTo,51077
|
|
249
249
|
bmcgo/utils/fetch_component_code.py,sha256=WtPJ5h1nM87X6RicrAhMOJzOzh9A0jD3CbjPc4A-REo,11280
|
|
250
250
|
bmcgo/utils/install_manager.py,sha256=XMZUuIHm7_DWRdLV4dAevsyamQ6rt8lb_7OqGWzNBC8,4927
|
|
251
251
|
bmcgo/utils/json_validator.py,sha256=_k5wU78wfYGrzvSDaqOEtT4otgKUjquVhZNpVf2PW_c,7524
|
|
252
252
|
bmcgo/utils/mapping_config_patch.py,sha256=_gKfZnrvsLPgHn1yXhEJRVTAeuGpeGD9T-Pqyw5Ydys,16827
|
|
253
253
|
bmcgo/utils/merge_csr.py,sha256=JNxHCfW1au84WQshdz0aQy8wMTEOHonjQT3s6LjlZN4,4580
|
|
254
254
|
bmcgo/utils/perf_analysis.py,sha256=fh6lV9AAKVhpPkGPwAJ8EWfGfUoHjqGYQxrvc32Xiac,4767
|
|
255
|
-
bmcgo/utils/tools.py,sha256=
|
|
255
|
+
bmcgo/utils/tools.py,sha256=MmFWnfL1ahRReBb7QaHjLNH3731IXDiBBRiOk9CPsQE,33152
|
|
256
256
|
bmcgo/utils/installations/README.md,sha256=hKXnFYmeHEuROFMFE-vzlGLSHg71bei5ZYwyYZphWNk,2
|
|
257
257
|
bmcgo/utils/installations/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
258
258
|
bmcgo/utils/installations/base_installer.py,sha256=3UZiKWoa41ygRbLD3QsE2FTp-VFp79V0I53QLRIf4E8,5902
|
|
@@ -264,8 +264,8 @@ bmcgo/utils/installations/install_plans/qemu.yml,sha256=lT7aKag60QUH6hTGFKa3hGRq
|
|
|
264
264
|
bmcgo/utils/installations/install_plans/studio.yml,sha256=APR3GM-3Q11LFfe8vh7t3LztDn4LLEpNHRUNjkaVekA,143
|
|
265
265
|
bmcgo/utils/installations/installers/apt_installer.py,sha256=nPaCb4cobSi9InN_aHsEPtQ0k4FgsCUWE5_VgBPvcRE,3769
|
|
266
266
|
bmcgo/utils/installations/installers/pip_installer.py,sha256=dDdios1EQ7fzt90r02pZeoM3jCmjslLzkSvzd2hgRVM,3241
|
|
267
|
-
openubmc_bingo-0.6.
|
|
268
|
-
openubmc_bingo-0.6.
|
|
269
|
-
openubmc_bingo-0.6.
|
|
270
|
-
openubmc_bingo-0.6.
|
|
271
|
-
openubmc_bingo-0.6.
|
|
267
|
+
openubmc_bingo-0.6.54.dist-info/METADATA,sha256=_xhyMb6Ab68CxPxVQ0SIr6xI51VbgHr9n7kDLWLPJds,1010
|
|
268
|
+
openubmc_bingo-0.6.54.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
269
|
+
openubmc_bingo-0.6.54.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
270
|
+
openubmc_bingo-0.6.54.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
271
|
+
openubmc_bingo-0.6.54.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|