Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/bin/updateUpdateManifests.py

Issue 29354340: Issue 4452 - updateUpdateManifests script errors out failing to import get_certificates_and_key (Closed) Base URL: https://hg.adblockplus.org/sitescripts
Patch Set: Created Sept. 21, 2016, 11:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/bin/updateUpdateManifests.py
===================================================================
--- a/sitescripts/extensions/bin/updateUpdateManifests.py
+++ b/sitescripts/extensions/bin/updateUpdateManifests.py
@@ -22,18 +22,18 @@ Generate update manifests
import os
import re
import sys
import subprocess
from ConfigParser import SafeConfigParser
from buildtools.packagerGecko import KNOWN_APPS
-from buildtools.packagerSafari import (get_developer_identifier,
- get_certificates_and_key)
+from buildtools.packagerSafari import get_developer_identifier
+from buildtools.xarfile import read_certificates_and_key
from sitescripts.utils import get_config, get_template
from sitescripts.extensions.utils import (
Configuration, getDownloadLinks,
writeIEUpdateManifest, writeAndroidUpdateManifest)
from sitescripts.extensions.android import get_min_sdk_version
@@ -50,17 +50,17 @@ def readMetadata(repo, version):
return {
'revision': revision,
'version': version,
'minSdkVersion': get_min_sdk_version(repo, version),
'basename': os.path.basename(repo.repository)
}
elif repo.type == 'safari':
metadata = repo.readMetadata(version)
- certs = get_certificates_and_key(repo.keyFile)[0]
+ certs = read_certificates_and_key(repo.keyFile)[0]
return {
'certificateID': get_developer_identifier(certs),
'version': version,
'shortVersion': version,
'basename': metadata.get('general', 'basename'),
'updatedFromGallery': True
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld