Skip to content

Fix special path parsing error.#205

Merged
mysterywolf merged 1 commit intoRT-Thread:masterfrom
Guozhanxin:patch-3
May 19, 2023
Merged

Fix special path parsing error.#205
mysterywolf merged 1 commit intoRT-Thread:masterfrom
Guozhanxin:patch-3

Conversation

@Guozhanxin
Copy link
Member

@Guozhanxin Guozhanxin commented May 19, 2023

发现当软件包添加了ci,即添加了 .github目录之后,下载文件会丢失。定位发现是解析软件包根路径出现了错误。之前默认情况下第一个解析到的文件是 README,他的父路径就是软件包根路径,所以没问题。添加.github路径之后,第一个文件变为了.github路径下的一个文件,所以获取到的软件包根路径是错误的。
修改获取根路径的方法,改为分割字符串,这样能够获取到正确的软件包根路径。

修改前

image

修改后

image

@mysterywolf mysterywolf merged commit 3178411 into RT-Thread:master May 19, 2023
@BernardXiong
Copy link
Member

linux的挂了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants