Bug 1519358 - Update upstream commint hash when import libdav1d. r=TD-Linux
authorAlex Chronopoulos <achronop@gmail.com>
Mon, 14 Jan 2019 21:46:32 +0000
changeset 511002 8377d1696ac403b0e9d1b2fb9a855b7717f576a8
parent 511001 8af061c4dfc01a8ecaff8072b70110f85f1c5060
child 511003 89ff2ff6f6f4b1b564df970e519d85323bc83440
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersTD-Linux
bugs1519358
milestone66.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 1519358 - Update upstream commint hash when import libdav1d. r=TD-Linux Differential Revision: https://phabricator.services.mozilla.com/D16298
python/mozbuild/mozbuild/vendor_dav1d.py
--- a/python/mozbuild/mozbuild/vendor_dav1d.py
+++ b/python/mozbuild/mozbuild/vendor_dav1d.py
@@ -92,17 +92,17 @@ Please set a repository url with --repo 
         filename = mozpath.join(target, 'moz.yaml')
         with open(filename) as f:
             yaml = f.read()
 
         prefix = '  release: commit'
         if prefix in yaml:
             new_yaml = re.sub(prefix + ' [v\.a-f0-9]+.*$',
                                 prefix + ' %s (%s).' % (revision, timestamp),
-                                yaml)
+                                yaml, flags=re.MULTILINE)
         else:
             new_yaml = '%s\n\n%s %s.' % (yaml, prefix, revision)
 
         if yaml != new_yaml:
             with open(filename, 'w') as f:
                 f.write(new_yaml)
 
     def clean_upstream(self, target):