Bug 935220: Uplift Add-on SDK to Firefox. r=me

https://github.com/mozilla/addon-sdk/compare/firefox27...50697e6182cb4f79f9605b7cd1d1f5084cfaf03f
This commit is contained in:
Dave Townsend
2013-11-05 13:51:58 -08:00
parent a5a774227a
commit 364e9d1cc1
99 changed files with 2824 additions and 554 deletions

View File

@@ -606,9 +606,13 @@ class ManifestBuilder:
filename = os.sep.join(name.split("/"))
# normalize filename, make sure that we do not add .js if it already has
# it.
if not filename.endswith(".js"):
if not filename.endswith(".js") and not filename.endswith(".json"):
filename += ".js"
basename = filename[:-3]
if filename.endswith(".js"):
basename = filename[:-3]
if filename.endswith(".json"):
basename = filename[:-5]
pkg = self.pkg_cfg.packages[pkgname]
if isinstance(sections, basestring):