openubmc-bingo 0.6.65__py3-none-any.whl → 0.6.66__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/utils/fetch_component_code.py +18 -2
- {openubmc_bingo-0.6.65.dist-info → openubmc_bingo-0.6.66.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.65.dist-info → openubmc_bingo-0.6.66.dist-info}/RECORD +7 -7
- {openubmc_bingo-0.6.65.dist-info → openubmc_bingo-0.6.66.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.65.dist-info → openubmc_bingo-0.6.66.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.65.dist-info → openubmc_bingo-0.6.66.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
11
11
|
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
12
12
|
# See the Mulan PSL v2 for more details.
|
|
13
|
+
import json
|
|
13
14
|
import os
|
|
14
15
|
import re
|
|
15
16
|
import shutil
|
|
@@ -17,7 +18,7 @@ import subprocess
|
|
|
17
18
|
from multiprocessing import Pool
|
|
18
19
|
import patch_ng
|
|
19
20
|
import yaml
|
|
20
|
-
from git import Repo
|
|
21
|
+
from git import Repo, exc
|
|
21
22
|
|
|
22
23
|
from bmcgo import errors
|
|
23
24
|
from bmcgo import misc
|
|
@@ -248,6 +249,21 @@ class FetchComponentCode:
|
|
|
248
249
|
log.error("conandata(%s) 没有找到", conandata)
|
|
249
250
|
log.info("更新组件 %s 代码到 %s 失败, 无法获取到 conan 信息", component_name,
|
|
250
251
|
conan_version)
|
|
252
|
+
except exc.GitCommandError as exp:
|
|
253
|
+
# 尝试修补MDS
|
|
254
|
+
cmd = f"conan install --requires={conan_version} -r openubmc_dev \
|
|
255
|
+
--build=missing -pr profile.ini --format=json --output-folder=tmp"
|
|
256
|
+
result = json.loads(Tools().run_command(cmd, capture_output=True, ignore_error=True))
|
|
257
|
+
nodes = result.stdout.strip().get("graph").get("nodes")
|
|
258
|
+
for node in nodes.values():
|
|
259
|
+
if node.get("ref").startswith(conan_version):
|
|
260
|
+
package_folder = node.get("package_folder")
|
|
261
|
+
if os.path.exists(f"{package_folder}/include/mds"):
|
|
262
|
+
src = f"{package_folder}/include/mds"
|
|
263
|
+
dest = os.path.abspath(f"{component_name}/mds")
|
|
264
|
+
shutil.copytree(src, dest, dirs_exist_ok=True)
|
|
265
|
+
log.info("将组件 %s 复制到 %s.", component_name, f"{component_name}/mds")
|
|
266
|
+
shutil.rmtree(f"{self.target_dir}/tmp", ignore_errors=True)
|
|
251
267
|
except Exception as exp:
|
|
252
268
|
log.error("工作状态错误: %s", exp)
|
|
253
|
-
log.error("更新组件代码到 %s 失败", conan_version)
|
|
269
|
+
log.error("更新组件代码到 %s 失败", conan_version)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256=
|
|
1
|
+
bmcgo/__init__.py,sha256=35RGOj62SFVkQy27ERD5AR3h542oaBYQIVkYOOwLpfQ,562
|
|
2
2
|
bmcgo/bmcgo.py,sha256=uD4TsfjrFB5aQPIS6WRUVc9ShXX-dSImY9ezkB13g1w,685
|
|
3
3
|
bmcgo/bmcgo_config.py,sha256=-KYhC3jNqWkCWu6YkyxDZlyC3floXIHaibGpmyB6YWQ,11873
|
|
4
4
|
bmcgo/errors.py,sha256=QW1ndrJcJ2Ws7riOznPKVvZsNlrYk73eZol7w8gJTPU,3076
|
|
@@ -245,7 +245,7 @@ bmcgo/utils/combine_json_schemas.py,sha256=08JrAlLeo_JgUqzYcZNgSwJZPLfjbWVJ4esPP
|
|
|
245
245
|
bmcgo/utils/component_post.py,sha256=rTSMv36geI6rbm6ZFQenZfG0mn1nVPpdJqn7g8bYtKA,2330
|
|
246
246
|
bmcgo/utils/component_version_check.py,sha256=ukc-H-A4ljkOShzVtkYWL0oTIYwxgDIZtP-fPqqHnRY,6274
|
|
247
247
|
bmcgo/utils/config.py,sha256=BoNx8U8VjnHrC-lFXIhp6Ex8f02kZgUS-mTkRxi_SYM,51141
|
|
248
|
-
bmcgo/utils/fetch_component_code.py,sha256=
|
|
248
|
+
bmcgo/utils/fetch_component_code.py,sha256=gLgo3J3s5DyuoKXuOArjxfQZxvCCt_bOWbI6teH5CNQ,12328
|
|
249
249
|
bmcgo/utils/install_manager.py,sha256=Ag7tcTbhBfc6aTe5FOiET-8koq8_iY38Sozmi3dquio,4919
|
|
250
250
|
bmcgo/utils/json_validator.py,sha256=_k5wU78wfYGrzvSDaqOEtT4otgKUjquVhZNpVf2PW_c,7524
|
|
251
251
|
bmcgo/utils/mapping_config_patch.py,sha256=rfCfeiEU3WAEMDuUxLDARNjne3pWtK0Bxga3dQrEWoM,16827
|
|
@@ -263,8 +263,8 @@ bmcgo/utils/installations/install_plans/qemu.yml,sha256=lT7aKag60QUH6hTGFKa3hGRq
|
|
|
263
263
|
bmcgo/utils/installations/install_plans/studio.yml,sha256=AEspVgsVAnmUdvqZYNCb7SPoUEq_0i61dfpauyguLa4,229
|
|
264
264
|
bmcgo/utils/installations/installers/apt_installer.py,sha256=nPaCb4cobSi9InN_aHsEPtQ0k4FgsCUWE5_VgBPvcRE,3769
|
|
265
265
|
bmcgo/utils/installations/installers/pip_installer.py,sha256=dDdios1EQ7fzt90r02pZeoM3jCmjslLzkSvzd2hgRVM,3241
|
|
266
|
-
openubmc_bingo-0.6.
|
|
267
|
-
openubmc_bingo-0.6.
|
|
268
|
-
openubmc_bingo-0.6.
|
|
269
|
-
openubmc_bingo-0.6.
|
|
270
|
-
openubmc_bingo-0.6.
|
|
266
|
+
openubmc_bingo-0.6.66.dist-info/METADATA,sha256=c7qItr-Hvt0Fzra-Q2wtuEN77amPYsFx8gOnGG1tvtg,1010
|
|
267
|
+
openubmc_bingo-0.6.66.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
268
|
+
openubmc_bingo-0.6.66.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
269
|
+
openubmc_bingo-0.6.66.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
270
|
+
openubmc_bingo-0.6.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|