Skip to content

Commit f4f7fb0

Browse files
committed
Add boringssl subrepo
1 parent 29860f3 commit f4f7fb0

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

SuperPatch.Core/Storages/ChromiumStorage.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class SubModulesInfo
1515
public string Url { get; internal set; }
1616
public string RevisionIndex { get; internal set; }
1717
public string Revision { get; internal set; }
18-
public bool ExtractFormAssignment { get; internal set; }
18+
public bool ExtractFromAssignment { get; internal set; }
1919
}
2020

2121
protected HttpClient Http { get; private set; }
@@ -56,7 +56,13 @@ public ChromiumStorage(Workspace wrk, HttpClient http) : base(wrk)
5656
Path = "third_party/perfetto/",
5757
Url = "https://raw.githubusercontent.com/google/perfetto",
5858
RevisionIndex = "/external/github.com/google/perfetto.git",
59-
ExtractFormAssignment = true,
59+
ExtractFromAssignment = true,
60+
});
61+
subModulesInfos.Add(new SubModulesInfo()
62+
{
63+
Path = "third_party/boringssl/",
64+
Url = "https://raw.githubusercontent.com/google/boringssl",
65+
RevisionIndex = "boringssl_revision",
6066
});
6167
}
6268

@@ -75,7 +81,7 @@ protected virtual async Task FetchChromiumCommit()
7581
private static string GetRevision(byte[] file, SubModulesInfo modulesInfo)
7682
{
7783
string deps = Encoding.UTF8.GetString(file);
78-
if (!modulesInfo.ExtractFormAssignment)
84+
if (!modulesInfo.ExtractFromAssignment)
7985
return GetRevision(deps, modulesInfo.RevisionIndex);
8086
else
8187
{

0 commit comments

Comments
 (0)