def _sign_xpi(xpi_file, signkey, update_link, update_rdf_file): import sulu _keyfile = os.path.join(KEYS_DIR, signkey) _override_file = path('sulu', 'override.txt') if not os.path.exists(_keyfile): raise Exception("Signkey file does not exist: %s" % _keyfile) if os.getenv('SIGNPASS') is None: raise Exception('$SIGNPASS is None.') get_passphrase = sulu.pass_phrase_cb('$SIGNPASS') get_max_version = sulu.max_version_cb(_override_file) sulu.sign_update_rdf([(xpi_file, update_link, get_max_version)], _keyfile, update_rdf_file, get_passphrase) log('Generating update.rdf done')
def test_thunderbird(self): self.assertEqual(sulu.max_version_cb(self.override)(self.thunderbird), '')
def test_none(self): self.assertIsNone(sulu.max_version_cb(''))
def test_firefox(self): self.assertEqual(sulu.max_version_cb(self.override)(self.firefox), self.firefox_ver)