Skip to content

Commit 4e98da8

Browse files
committed
fetch cromite_patches_list
1 parent e83504a commit 4e98da8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

SuperPatch.Core/Storages/Bromite/BromiteRemoteStorage.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ public override async Task<byte[]> GetPatchAsync(string filename)
4242
public override async Task<string> GetPatchesListAsync()
4343
{
4444
if (string.IsNullOrEmpty(ChromiumCommit)) await FetchChromiumCommit();
45-
return await http.GetStringAsync($"{PatchSourceUrl}/{workspace.CommitShaOrTag}/build/bromite_patches_list.txt");
45+
try
46+
{
47+
return await http.GetStringAsync($"{PatchSourceUrl}/{workspace.CommitShaOrTag}/build/cromite_patches_list.txt");
48+
}
49+
catch
50+
{
51+
return await http.GetStringAsync($"{PatchSourceUrl}/{workspace.CommitShaOrTag}/build/bromite_patches_list.txt");
52+
}
4653
}
4754
}
4855
}

0 commit comments

Comments
 (0)