Implementation¶
repackage.helpers¶
- class repackage.helpers.Extractor(install_rdf)[source]¶
Extracts manifest from install.rdf
modified Extractor class from zamboni/apps/versions/compare.py
- ADDON_EXTENSION = '2'¶
- manifest = u'urn:mozilla:install-manifest'¶
- class repackage.helpers.Repackage[source]¶
-
- download(location)[source]¶
Downloads the XPI (from location) and instantiates XPI in self.xpi_zip
This eventually will record statistics about build times
Param: location (String) location of the file to download rebuild XPI Returns: None
- extract_packages(sdk_source_dir)[source]¶
Builds SDK environment and calls the xpi.xpi_utils.build()
Returns: temporary sdk_dir
- get_manifest(package_overrides={})[source]¶
extracts manifest from install.rdf it does not contain all dependencies, these will be appended during copying package files
Sets the self.manifest field