зеркало из https://github.com/mozilla/tls-canary.git
fixed outstanding OneCRL-Tools issues
This commit is contained in:
Родитель
506d2650e8
Коммит
d226feacff
|
@ -255,7 +255,8 @@ class BaseMode(object):
|
|||
# delete revocations file completely
|
||||
logger.debug("Deleting existing data.safe.bin file")
|
||||
profile_cert_storage = os.path.join(new_profile_dir, "security_state", "data.safe.bin")
|
||||
os.remove(profile_cert_storage)
|
||||
if os.path.exists(profile_cert_storage):
|
||||
os.remove(profile_cert_storage)
|
||||
elif one_crl_env == "custom":
|
||||
# leave the existing revocations file alone
|
||||
logger.info("Testing with custom OneCRL entries from default profile")
|
||||
|
|
|
@ -24,7 +24,7 @@ _ONE_CRL_TOOLS_REPO = "OneCRL-Tools"
|
|||
#
|
||||
# The string returned is the absolute path to the data.safe.bin that should be installed
|
||||
# to <FIREFOX_PROFILE>/security_state/data.safe.bin.
|
||||
def populate_cert_storage(onecrl_env, workdir, commit="master", use_cache=True, cache_timeout=60*60):
|
||||
def populate_cert_storage(onecrl_env, workdir, commit="stable", use_cache=True, cache_timeout=60*60):
|
||||
global logger
|
||||
|
||||
dc = cache.DiskCache(os.path.join(workdir, "cache"), cache_timeout, purge=True)
|
||||
|
@ -34,7 +34,7 @@ def populate_cert_storage(onecrl_env, workdir, commit="master", use_cache=True,
|
|||
dc.delete(cache_id)
|
||||
if cache_id in dc:
|
||||
logger.warning("Using cached OneCRL cert_storage data from `%s`" % dc[cache_id])
|
||||
return
|
||||
return os.path.join(dc[cache_id], "security_state", "data.safe.bin")
|
||||
|
||||
if _ONE_CRL_TOOLS_REPO not in dc:
|
||||
subprocess.call(["git", "clone", _ONE_CRL_TOOLS_GIT_URL, dc[_ONE_CRL_TOOLS_REPO]])
|
||||
|
|
Загрузка…
Ссылка в новой задаче