mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-25 16:35:34 +00:00
upload_system_symbols: Fix sym-upload-v2 when uploading dumped symbols
This was previously setting the right upload servers too late to use them when uploading previously dumped symbols (the `--upload-from` use case) Bug: 1400770 Change-Id: If5bb749707b9f0a181585619f30ec9cb011db5ed Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4111102 Reviewed-by: Robert Sesek <rsesek@chromium.org>
This commit is contained in:
parent
63af0cd752
commit
80430d73ae
1 changed files with 5 additions and 4 deletions
|
@ -113,6 +113,11 @@ func main() {
|
|||
flag.Parse()
|
||||
log.SetFlags(0)
|
||||
|
||||
// If `apiKey` is set, we're using the v2 protocol.
|
||||
if len(*apiKey) > 0 {
|
||||
uploadServers = uploadServersV2
|
||||
}
|
||||
|
||||
var uq *UploadQueue
|
||||
|
||||
if *uploadOnlyPath != "" {
|
||||
|
@ -149,10 +154,6 @@ func main() {
|
|||
defer os.RemoveAll(p)
|
||||
}
|
||||
}
|
||||
// If `apiKey` is set, we're using the v2 protocol.
|
||||
if len(*apiKey) > 0 {
|
||||
uploadServers = uploadServersV2
|
||||
}
|
||||
|
||||
dq := StartDumpQueue(*systemRoot, dumpPath, uq)
|
||||
dq.Wait()
|
||||
|
|
Loading…
Reference in a new issue