HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/uaclient/__pycache__/gpg.cpython-38.pyc
U

��JhD�@sNddlZddlZddlZddlmZmZe�e�e��Z	e
e
dd�dd�ZdS)�N)�
exceptions�util)�source_keyfile�destination_keyfile�returncCs@t�d|�tj�|�s$tj|d��t�||�t�	|d�dS)aXCopy 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 UbuntuProError: Any GPG errors or if specific key does not exist in
        the source_keyring_file.
    zExporting GPG key %s)Zkeyfilei�N)
�LOG�debug�os�path�existsrZGPGKeyNotFound�shutil�copy�chmod)rr�r�./usr/lib/python3/dist-packages/uaclient/gpg.py�export_gpg_key
s

r)Zloggingr	rZuaclientrrZ	getLoggerZreplace_top_level_logger_name�__name__r�strrrrrr�<module>s