Your IP : 216.73.216.14


Current Path : /usr/lib/python3/dist-packages/uaclient/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/uaclient/__pycache__/gpg.cpython-38.pyc

U

8�-d-�@s:ddlZddlZddlZddlmZeedd�dd�ZdS)�N)�
exceptions)�source_keyfile�destination_keyfile�returncCsDt�d|�tj�|�s(t�d�|���t�	||�t�
|d�dS)aYCopy a specific key from source_keyring_dir into destination_keyfile

    :param source_keyfile: Path of source keyring file to export.
    :param destination_keyfile: The filename created with the single exported
        key.

    :raise UserFacingError: Any GPG errors or if specific key does not exist in
        the source_keyring_file.
    zExporting GPG key %szGPG key '{}' not found.i�N)�logging�debug�os�path�existsrZUserFacingError�format�shutil�copy�chmod)rr�r�./usr/lib/python3/dist-packages/uaclient/gpg.py�export_gpg_keys
�r)rrrZuaclientr�strrrrrr�<module>s