Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Build Lite
提交
0577c297
B
Build Lite
项目概览
OpenHarmony
/
Build Lite
大约 1 年 前同步成功
通知
22
Star
24
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Build Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0577c297
编写于
9月 09, 2022
作者:
L
lipengzheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
solve symbolic link point to self
Signed-off-by:
N
lipengzheng
<
lipengzheng1@huawei.com
>
上级
e44e7cd1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
hb_internal/build/part_rom_statistics.py
hb_internal/build/part_rom_statistics.py
+9
-9
未找到文件。
hb_internal/build/part_rom_statistics.py
浏览文件 @
0577c297
...
...
@@ -22,7 +22,7 @@ import json
from
hb_internal.common.utils
import
hb_info
file_path
s
=
[]
budle_json_file
s
=
[]
standard_part_roms
=
[]
part_info_list
=
[]
...
...
@@ -175,12 +175,11 @@ def read_bundle_json_file(file_path):
def
collect_bundle_json_path
(
part_root_path
):
for
file
in
os
.
listdir
(
part_root_path
):
file_path
=
os
.
path
.
join
(
part_root_path
,
file
)
if
file
==
'bundle.json'
:
file_paths
.
append
(
file_path
)
if
os
.
path
.
isdir
(
file_path
):
collect_bundle_json_path
(
file_path
)
for
root
,
dirs
,
files
in
os
.
walk
(
part_root_path
):
abs_path
=
os
.
path
.
abspath
(
root
)
for
file_name
in
files
:
if
file_name
==
'bundle.json'
:
budle_json_files
.
append
(
os
.
path
.
join
(
abs_path
,
file_name
))
def
read_subsystem_config
(
root_path
):
...
...
@@ -219,7 +218,8 @@ def output_part_rom_status(root_path):
part_root_path
=
os
.
path
.
join
(
root_path
,
part_path
)
if
os
.
path
.
isdir
(
part_root_path
):
collect_bundle_json_path
(
part_root_path
)
for
json_file
in
file_paths
:
read_bundle_json_file
(
json_file
)
for
json_file
in
budle_json_files
:
if
os
.
path
.
exists
(
json_file
):
read_bundle_json_file
(
json_file
)
actual_rom_statistics
(
ohos_config
[
0
])
return
0
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录