Bug 1232421 - force matching the start of the line for comments, r=glandium
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 14 Dec 2015 20:33:57 +0000
changeset 276740 d0f136a93ad36c7f31c19408696935c4f6e8bd9c
parent 276739 48a56019f52049bbf9ccede95d15a2cb3b5295bc
child 276741 b5336b2a4e6ebb6fd73a6b19052ac8eaa75e121a
push id69273
push usercbook@mozilla.com
push dateThu, 17 Dec 2015 11:03:52 +0000
treeherdermozilla-inbound@565d7ae436ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1232421
milestone46.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 1232421 - force matching the start of the line for comments, r=glandium
python/mozbuild/mozpack/chrome/manifest.py
--- a/python/mozbuild/mozpack/chrome/manifest.py
+++ b/python/mozbuild/mozpack/chrome/manifest.py
@@ -320,17 +320,17 @@ class ManifestContract(ManifestEntry):
     def __str__(self):
         return self.serialize(self.contractID, self.cid)
 
 # All manifest classes by their type name.
 MANIFESTS_TYPES = dict([(c.type, c) for c in globals().values()
                        if type(c) == type and issubclass(c, ManifestEntry)
                        and hasattr(c, 'type') and c.type])
 
-MANIFEST_RE = re.compile(r'\s*#.*$')
+MANIFEST_RE = re.compile(r'^#.*$')
 
 
 def parse_manifest_line(base, line):
     '''
     Parse a line from a manifest file with the given base directory and
     return the corresponding ManifestEntry instance.
     '''
     # Remove comments