a
    ©!cm  ã                   @   sx   d dl mZ d dl mZ d dlmZ d dlmZ d dlZd dlZd dl	Zd dl
Zd dlZe d¡ZG dd„ dejƒZdS )	é    )Úabsolute_import)Úunicode_literals)Úcommands)Ú_NÚdnfc                   @   s,   e Zd ZdZedƒZedd„ ƒZdd„ ZdS )ÚMakeCacheCommand)Z	makecacheZmczgenerate the metadata cachec                 C   s,   | j dddd� | j dddgdtjd� d S )Nz--timerÚ
store_trueÚ	timer_opt)ÚactionÚdestÚtimerú?)ÚnargsÚchoicesÚmetavarÚhelp)Úadd_argumentÚargparseZSUPPRESS)Úparser© r   ú>/usr/lib/python3.9/site-packages/dnf/cli/commands/makecache.pyÚset_argparser'   s    ÿzMakeCacheCommand.set_argparserc                 C   s2   | j jd up| j j}tdƒ}t |¡ | j |¡S )Nz*Making cache files for all metadata files.)Zoptsr   r	   r   ÚloggerÚdebugÚbaseZupdate_cache)Úselfr   Úmsgr   r   r   Úrun.   s    
zMakeCacheCommand.runN)	Ú__name__Ú
__module__Ú__qualname__Úaliasesr   ZsummaryÚstaticmethodr   r   r   r   r   r   r   #   s
   
r   )Z
__future__r   r   Zdnf.clir   Zdnf.i18nr   r   r   Zdnf.exceptionsZdnf.utilZloggingZ	getLoggerr   ZCommandr   r   r   r   r   Ú<module>   s   
