Bug 1316537 part 3 - Fix tar package path conversion for local build. r=Ehsan
authorTing-Yu Chou <janus926@gmail.com>
Tue, 15 Nov 2016 12:22:44 +0800
changeset 439685 0e6e3d0eec494dee468cc26befdedf4da02b8d7e
parent 439684 bb4a098b30014f45017657dd9aadbda4fd094760
child 439686 0ecd90195aa2137e9e3fbc363d5e9f6820242937
push id36064
push userrthijssen@mozilla.com
push dateWed, 16 Nov 2016 13:38:27 +0000
reviewersEhsan
bugs1316537
milestone53.0a1
Bug 1316537 part 3 - Fix tar package path conversion for local build. r=Ehsan MozReview-Commit-ID: 6btpeTxouB
build/build-clang/build-clang.py
--- a/build/build-clang/build-clang.py
+++ b/build/build-clang/build-clang.py
@@ -77,17 +77,17 @@ def updated_env(env):
 def build_tar_package(tar, name, base, directory):
     name = os.path.realpath(name)
     # On Windows, we have to convert this into an msys path so that tar can
     # understand it.
     if is_windows():
         name = name.replace('\\', '/')
         def f(match):
             return '/' + match.group(1).lower()
-        name = re.sub(r'^([A-Z]):', f, name)
+        name = re.sub(r'^([A-Za-z]):', f, name)
     run_in(base, [tar,
                   "-c",
                   "-%s" % ("J" if ".xz" in name else "j"),
                   "-f",
                   name, directory])
 
 
 def copy_dir_contents(src, dest):