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 dejjZdS ) )absolute_import)unicode_literals)_logger)OptionParserNc s e Zd ZdgZedZ fddZedd Zdd Z d d Z dd Zd d Zdd Z dd Zdd Zd ddZd!ddZedd Zdd Zdd Z ZS )"DownloadCommandZdownloadz%Download package to current directoryc s t t| | d | _d | _d S N)superr __init__optsparser)selfcli __class__ 8/usr/lib/python3.9/site-packages/dnf-plugins/download.pyr + s zDownloadCommand.__init__c C s | j ddtdd | j ddtdd | j d dtd d | j ddtdd | j d ddg tjdtdd | j ddtdd | j ddtdd | j ddddtdd | j ddg dg tdd d S )!Npackages+zpackages to download)nargshelpz--source store_truezdownload the src.rpm instead)actionr z--debuginfoz'download the -debuginfo package insteadz --debugsourcez)download the -debugsource package insteadz--archz --archlistarchesz[arch]z5limit the query to packages of given architectures.)destdefaultr metavarr z --resolvez(resolve and download needed dependenciesz --alldepsz^when running with --resolve, download all dependencies (do not exclude already installed ones)z--urlz--urlsurlzJprint list of urls where the rpms can be downloaded instead of downloading)r r r z--urlprotocolsappend)httphttpsrsyncftpz4when running with --url, limit to specific protocols)r choicesr r )add_argumentr r Z_SplitCallback)r r r r set_argparser0 s<