# Path: securesystemslib/process.py
# DEVNULL = subprocess.DEVNULL
# PIPE = subprocess.PIPE
# def _default_timeout():
# def run(cmd, check=True, timeout=_default_timeout(), **kwargs):
# def run_duplicate_streams(cmd, timeout=_default_timeout()):
#       def _duplicate_streams():


import logging
import os
from securesystemslib import process
"""
<Module Name>
  constants.py

<Author>
  Santiago Torres-Arias <santiago@nyu.edu>

<Started>
  Nov 15, 2017

<Copyright>
  See LICENSE for licensing information.

<Purpose>
  aggregates all the constant definitions and lookup structures for signature
  handling
"""


log = logging.getLogger(__name__)


def is_available_gnupg(gnupg):
  gpg_version_cmd = gnupg + " --version"
  try:

# Path: securesystemslib/process.py
# DEVNULL = subprocess.DEVNULL
# PIPE = subprocess.PIPE
# def _default_timeout():
# def run(cmd, check=True, timeout=_default_timeout(), **kwargs):
# def run_duplicate_streams(cmd, timeout=_default_timeout()):
#       def _duplicate_streams():


# Path: securesystemslib/gpg/constants.py
import logging
import os
from securesystemslib import process

"""
<Module Name>
  constants.py

<Author>
  Santiago Torres-Arias <santiago@nyu.edu>

<Started>
  Nov 15, 2017

<Copyright>
  See LICENSE for licensing information.

<Purpose>
  aggregates all the constant definitions and lookup structures for signature
  handling
"""


log = logging.getLogger(__name__)


def is_available_gnupg(gnupg):
  gpg_version_cmd = gnupg + " --version"
  try:

    process.run(gpg_version_cmd, stdout=process.PIPE, stderr=process.PIPE)