8 Star 0 Fork 8

src-openEuler/distributed-build_lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-feat-Adapt-to-Openeuler-productdefine.patch 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
tianhang 提交于 2023-05-30 17:59 +08:00 . init and add patches for openeuler build
From 6214493503047d93280f7ea392689c4c2113c7dc Mon Sep 17 00:00:00 2001
From: peng_langyuan <peng_langyuan@hoperun.com>
Date: Wed, 17 May 2023 13:33:57 +0800
Subject: [PATCH 2/3] =?UTF-8?q?feat(Adapt=20to=20Openeuler):=E7=A7=BB?=
=?UTF-8?q?=E9=99=A4=E5=AF=B9productdefine=E7=9B=AE=E5=BD=95=E7=9A=84?=
=?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hb_internal/common/config.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hb_internal/common/config.py b/hb_internal/common/config.py
index abde6ec..aae3d50 100644
--- a/hb_internal/common/config.py
+++ b/hb_internal/common/config.py
@@ -288,6 +288,8 @@ class Config(metaclass=Singleton):
def built_in_product_path(self):
_built_in_product_path = os.path.join(self.root_path,
'productdefine/common/products')
+ if self._product == "openeuler":
+ return
if not os.path.isdir(_built_in_product_path):
raise OHOSException(
f'Invalid built-in product path: {_built_in_product_path}')
@@ -297,6 +299,8 @@ class Config(metaclass=Singleton):
def built_in_device_path(self):
_built_in_device_path = os.path.join(self.root_path,
'productdefine/common/device')
+ if self._product == "openeuler":
+ return
if not os.path.isdir(_built_in_device_path):
raise OHOSException(
f'Invalid built-in product path: {_built_in_device_path}')
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/distributed-build_lite.git
git@gitee.com:src-openeuler/distributed-build_lite.git
src-openeuler
distributed-build_lite
distributed-build_lite
master

搜索帮助