forked from almalinux/cas_wrapper
Add --bom argument to all commands
This commit is contained in:
parent
98ca413db7
commit
1650724326
@ -52,6 +52,7 @@ class CasWrapper:
|
|||||||
"""
|
"""
|
||||||
command = self._cas[
|
command = self._cas[
|
||||||
'notarize',
|
'notarize',
|
||||||
|
'--bom',
|
||||||
local_path,
|
local_path,
|
||||||
'-o',
|
'-o',
|
||||||
'json',
|
'json',
|
||||||
@ -88,7 +89,7 @@ class CasWrapper:
|
|||||||
"""
|
"""
|
||||||
command_args = ['authenticate', local_path]
|
command_args = ['authenticate', local_path]
|
||||||
if use_hash:
|
if use_hash:
|
||||||
command_args = ['authenticate', '--hash', local_path]
|
command_args = ['authenticate', '--bom', '--hash', local_path]
|
||||||
command_args.extend(('-o', 'json'))
|
command_args.extend(('-o', 'json'))
|
||||||
command = self._cas[command_args]
|
command = self._cas[command_args]
|
||||||
try:
|
try:
|
||||||
@ -119,7 +120,6 @@ class CasWrapper:
|
|||||||
"""
|
"""
|
||||||
is_authenticated = False
|
is_authenticated = False
|
||||||
commit_cas_hash = None
|
commit_cas_hash = None
|
||||||
self.ensure_login()
|
|
||||||
try:
|
try:
|
||||||
result_json = self.authenticate(local_path, return_json=True)
|
result_json = self.authenticate(local_path, return_json=True)
|
||||||
is_authenticated = result_json['verified']
|
is_authenticated = result_json['verified']
|
||||||
@ -140,7 +140,6 @@ class CasWrapper:
|
|||||||
Returns authenticate result.
|
Returns authenticate result.
|
||||||
"""
|
"""
|
||||||
is_authenticated = False
|
is_authenticated = False
|
||||||
self.ensure_login()
|
|
||||||
try:
|
try:
|
||||||
is_authenticated = self.authenticate(
|
is_authenticated = self.authenticate(
|
||||||
local_path,
|
local_path,
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="cas_wrapper",
|
name="cas_wrapper",
|
||||||
version="0.0.2",
|
version="0.0.3",
|
||||||
author="Stepan Oksanichenko",
|
author="Stepan Oksanichenko",
|
||||||
author_email="soksanichenko@almalinux.org",
|
author_email="soksanichenko@almalinux.org",
|
||||||
description="The python wrapper around binary cas from "
|
description="The python wrapper around binary cas from "
|
||||||
|
Loading…
Reference in New Issue
Block a user