Bug 833946 - Don't scan the entire tree for a root manifest in the packager. r=gps

This commit is contained in:
Mike Hommey 2013-01-23 23:49:25 +01:00
parent 88d3c5df77
commit 06559c6867
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ class SimpleManifestSink(object):
paths = [mozpack.path.dirname(m) for m in self._manifests]
path = mozpack.path.dirname(mozpack.path.commonprefix(paths))
for p, f in self._finder.find(mozpack.path.join(path,
'**', 'chrome.manifest')):
'chrome.manifest')):
if not p in self._manifests:
self.packager.add(SimpleManifestSink.normalize_path(p), f)
self.packager.close()

View File

@ -222,7 +222,7 @@ class TestSimpleManifestSink(unittest.TestCase):
'bin/foo/qux',
'bin/foo/chrome.manifest',
'bin/bar',
'bin/**/chrome.manifest'
'bin/chrome.manifest'
])