|
|
|
@ -52,6 +52,7 @@ class CasWrapper:
|
|
|
|
|
"""
|
|
|
|
|
command = self._cas[
|
|
|
|
|
'notarize',
|
|
|
|
|
'--bom',
|
|
|
|
|
local_path,
|
|
|
|
|
'-o',
|
|
|
|
|
'json',
|
|
|
|
@ -88,7 +89,7 @@ class CasWrapper:
|
|
|
|
|
"""
|
|
|
|
|
command_args = ['authenticate', local_path]
|
|
|
|
|
if use_hash:
|
|
|
|
|
command_args = ['authenticate', '--hash', local_path]
|
|
|
|
|
command_args = ['authenticate', '--bom', '--hash', local_path]
|
|
|
|
|
command_args.extend(('-o', 'json'))
|
|
|
|
|
command = self._cas[command_args]
|
|
|
|
|
try:
|
|
|
|
@ -119,7 +120,6 @@ class CasWrapper:
|
|
|
|
|
"""
|
|
|
|
|
is_authenticated = False
|
|
|
|
|
commit_cas_hash = None
|
|
|
|
|
self.ensure_login()
|
|
|
|
|
try:
|
|
|
|
|
result_json = self.authenticate(local_path, return_json=True)
|
|
|
|
|
is_authenticated = result_json['verified']
|
|
|
|
@ -140,7 +140,6 @@ class CasWrapper:
|
|
|
|
|
Returns authenticate result.
|
|
|
|
|
"""
|
|
|
|
|
is_authenticated = False
|
|
|
|
|
self.ensure_login()
|
|
|
|
|
try:
|
|
|
|
|
is_authenticated = self.authenticate(
|
|
|
|
|
local_path,
|
|
|
|
|