Bug 1385503 - Correct rust srcdir url again. r?gps draft
authorRalph Giles <giles@mozilla.com>
Fri, 28 Jul 2017 17:04:39 -0700
changeset 617923 b24611a392c9f0a746ff0a5791eaca0a6e444041
parent 617496 16ffc1d05422a81099ce8b9b59de66dde4c8b2f0
child 639912 ee5a58cd29469d9fac339b81cf9f21a4780ff2da
push id71160
push userbmo:giles@thaumas.net
push dateSat, 29 Jul 2017 00:11:32 +0000
reviewersgps
bugs1385503
milestone56.0a1
Bug 1385503 - Correct rust srcdir url again. r?gps The 'src' subdir needs to be part of the path *after* the blob/commit_id section of the url, so we need to no strip it from the prefix when we match. MozReview-Commit-ID: 9HA3a7d8kh4
toolkit/crashreporter/tools/symbolstore.py
--- a/toolkit/crashreporter/tools/symbolstore.py
+++ b/toolkit/crashreporter/tools/symbolstore.py
@@ -393,26 +393,26 @@ class Dumper:
         self.srcsrv = srcsrv
         if repo_manifest:
             self.parse_repo_manifest(repo_manifest)
         self.file_mapping = file_mapping or {}
         # Add a static mapping for Rust sources.
         target_os = buildconfig.substs['OS_ARCH']
         rust_srcdir = None
         if target_os == 'WINNT':
-            rust_srcdir = 'C:/projects/rust/src/'
+            rust_srcdir = 'C:/projects/rust/'
         elif target_os == 'Darwin':
-            rust_srcdir = '/Users/travis/build/rust-lang/rust/src/'
+            rust_srcdir = '/Users/travis/build/rust-lang/rust/'
         elif target_os == 'Linux':
-            rust_srcdir = '/checkout/src/'
+            rust_srcdir = '/checkout/'
         if rust_srcdir is not None:
             self.srcdirs.append(rust_srcdir)
             Dumper.srcdirRepoInfo[rust_srcdir] = GitRepoInfo(rust_srcdir,
                                                              buildconfig.substs['RUSTC_COMMIT'],
-                                                             'https://github.com/rust-lang/rust/src/')
+                                                             'https://github.com/rust-lang/rust/')
 
     def parse_repo_manifest(self, repo_manifest):
         """
         Parse an XML manifest of repository info as produced
         by the `repo manifest -r` command.
         """
         doc = parse(repo_manifest)
         if doc.firstChild.tagName != "manifest":