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

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

Issue 29322523: Issue 2796 - Moved logic to extract Safari Developer ID to buildtools (Closed)
Patch Set: Created July 16, 2015, 3:14 p.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 | « sitescripts/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/utils.py » ('j') | 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
@@ -25,8 +25,11 @@
import os
import re
import subprocess
+from ConfigParser import SafeConfigParser
+
from buildtools.packagerGecko import KNOWN_APPS
-from ConfigParser import SafeConfigParser
+from buildtools.packagerSafari import get_developer_identifier, get_certificates_and_key
+
from sitescripts.utils import get_config, get_template
from sitescripts.extensions.utils import (
Configuration, getDownloadLinks, getSafariCertificateID,
@@ -52,7 +55,7 @@
elif repo.type == 'safari':
metadata = repo.readMetadata(version)
return {
- 'certificateID': getSafariCertificateID(repo.keyFile),
+ 'certificateID': get_developer_identifier(get_certificates_and_key(repo.keyFile)[0]),
'version': version,
'shortVersion': version,
'basename': metadata.get('general', 'basename'),
« no previous file with comments | « sitescripts/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld