관리-도구
편집 파일: download.cpython-39.pyc
a �&c*0 � @ s� d dl mZ d dl mZ d dlmZmZ d dlmZ d dlZd dl Zd dl Zd dlZd dlZd dl Zd dlZd dlZd dlZd dlZejjG dd� dejj��ZdS )� )�absolute_import)�unicode_literals)�_�logger)�OptionParserNc s� e Zd ZdgZed�Z� fdd�Zedd� �Zdd� Z d d � Z dd� Zd d� Zdd� Z dd� Zdd� Zd dd�Zd!dd�Zedd� �Zdd� Zdd� Z� ZS )"�DownloadCommandZdownloadz%Download package to current directoryc s t t| ��|� d | _d | _d S �N)�superr �__init__�opts�parser)�self�cli�� __class__� �8/usr/lib/python3.9/site-packages/dnf-plugins/download.pyr + s zDownloadCommand.__init__c C s� | j ddtd�d� | j ddtd�d� | j d dtd �d� | j ddtd�d� | j d ddg tjdtd�d� | j ddtd�d� | j ddtd�d� | j ddddtd�d� | j ddg d�g td�d � d S )!N�packages�+zpackages to download)�nargs�helpz--source� store_truezdownload the src.rpm instead)�actionr z--debuginfoz'download the -debuginfo package insteadz --debugsourcez)download the -debugsource package insteadz--archz --archlist�archesz[arch]z5limit the query to packages of given architectures.)�dest�defaultr �metavarr z --resolvez(resolve and download needed dependenciesz --alldepsz^when running with --resolve, download all dependencies (do not exclude already installed ones)z--urlz--urls�urlzJprint list of urls where the rpms can be downloaded instead of downloading)r r r z--urlprotocols�append)�http�https�rsync�ftpz4when running with --url, limit to specific protocols)r �choicesr r )�add_argumentr r Z_SplitCallback)r r r r � set_argparser0 s<