mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-23 07:00:17 +00:00
!1302 修改 etc/sandbox/appdata_sandbox_fixer.py 不规范代码
Merge pull request !1302 from 樊景乐/master
This commit is contained in:
commit
64f091ba98
@ -170,13 +170,13 @@ def _merge_scope_common(origin, new):
|
||||
|
||||
#处理 app-base
|
||||
app = new.get("app-base")
|
||||
if app is not None and len(app) > 0:
|
||||
if app is not None and len(app) > 0:
|
||||
_merge_scope_app(origin.get("app-base"), app)
|
||||
pass
|
||||
|
||||
#处理 app-resources
|
||||
app = new.get("app-resources")
|
||||
if app is not None and len(app) > 0:
|
||||
if app is not None and len(app) > 0:
|
||||
_merge_scope_app(origin.get("app-resources"), app)
|
||||
pass
|
||||
|
||||
@ -238,7 +238,7 @@ def fix_sandbox_config_file(options):
|
||||
|
||||
#处理individual
|
||||
individuals = data.get("individual")
|
||||
if individuals is not None and len(individuals) > 0:
|
||||
if individuals is not None and len(individuals) > 0:
|
||||
_merge_scope_individual(origin_json.get("individual")[0], individuals[0])
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user