| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.9/site-packages/cfnbootstrap/__pycache__/ |
Upload File : |
a
��0i� � @ s� d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
Z
d dlZd dlm
Z
d dlZd dlmZ d dlZd dlZd dlZd dlZe
�d �ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZdS )� )�util)� ToolError)�retry_on_failure)�TarError)�
BadZipfileN)�chmod)�requestszcfn.initc @ sN e Zd ZdZe�dej�Ze�d�Zdd� Z dd� Z
dd � Ze� d
d� �Z
dS )
�SourcesToolz=
Explodes sources (archives) into locations on disk
z^(https?|ftp)://.*$z.^https?://github.com/.*?/(zipball|tarball)/.*$c C s` g }|st �d� |S t|�� dd� d�D �].\}}tj�|�r�z| �||�}W q� ty� } zt d||j
f ��W Y d}~q�d}~0 0 n"tj�
|�s�t d| ��t|d�}t�|�r�t �d |� t|�}n,t�|�r�t �d
|� t|�}nt d| ��t �d| � | �||� tj�|�� ��r8t �d
� | �|�}t �d||� |�|� |�|� q*|S )a�
Extract archives to their corresponding destination directories, returning directories which were updated.
Arguments:
action -- a dict of directory to archive location, which can be either a path or URL
auth_config -- an AuthenticationConfig object for managing authenticated downloads
Exceptions:
ToolError -- on expected failures
zNo sources specifiedc S s | d S )Nr � )Zpairr
r
�=/usr/lib/python3.9/site-packages/cfnbootstrap/sources_tool.py�<lambda>>