Bug 1379537 - Fix InstallManifestNoSymlinks to not install symlinks. r=glandium
authorPhilip Chimento <philip.chimento@gmail.com>
Fri, 21 Jul 2017 20:13:34 -0700
changeset 419717 bbac1c606f3d321666c2f6305bc978072a80a692
parent 419716 3555b8292a108555459a3ffdb168ca6c713cccfa
child 419718 d55bb144a48d743d48825eed765c274a2dd5c0f9
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1379537
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1379537 - Fix InstallManifestNoSymlinks to not install symlinks. r=glandium
python/mozbuild/mozpack/manifests.py
--- a/python/mozbuild/mozpack/manifests.py
+++ b/python/mozbuild/mozpack/manifests.py
@@ -405,8 +405,15 @@ class InstallManifestNoSymlinks(InstallM
     """
 
     def add_symlink(self, source, dest):
         """A wrapper that accept symlink entries and install file copies.
 
         source will be copied to dest.
         """
         self.add_copy(source, dest)
+
+    def add_pattern_symlink(self, base, pattern, dest):
+        """A wrapper that accepts symlink patterns and installs file copies.
+
+        Files discovered with ``pattern`` will be copied to ``dest``.
+        """
+        self.add_pattern_copy(base, pattern, dest)