Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
©ft`] ã @ sl d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ d dl Z
d dlZejdƒZ
G dd „ d ejƒZdS )
é )Úabsolute_import)Úunicode_literals)Úcommands)ÚOptionParser)Ú_NÚdnfc @ s8 e Zd ZdZdZedƒZedd„ ƒZdd„ Z d d
„ Z
dS )
ÚReinstallCommandzSA class containing methods needed by the cli to execute the reinstall command.
Ú reinstallÚreizreinstall a packagec C s" | j ddtdƒtjtdƒd� d S )NÚpackagesú+zPackage to reinstallZPACKAGE)ÚnargsÚhelpÚactionÚmetavar)Úadd_argumentr r ZParseSpecGroupFileCallback)Úparser© r ú/usr/lib/python3.6/reinstall.pyÚ
set_argparser( s zReinstallCommand.set_argparserc C sH | j j}d|_d|_d|_d|_tj| j| j ƒ | j j
sDtj| jƒ dS )a Verify that conditions are met so that this command can
run. These include that the program is being run by the root
user, that there are enabled repositories with gpg keys, and
that this command is called with appropriate arguments.
TN)ZcliÚdemandsZsack_activationZavailable_reposZ resolvingZ root_userr Z_checkGPGKeyÚbaseÚoptsÚ filenamesZ_checkEnabledRepo)Úselfr r r r Ú configure. s zReinstallCommand.configurec C sØ d}xp| j j| jjd| j jjd�D ]P}y| j j|ƒ W n6 tjj k
rl t
jtdƒ| j jj
j|jƒƒ Y q"X d}q"W �xD| jjdd„ | jjD ƒ D �]$}y| j j|ƒ W �n tjjk
�r } zPx,|jD ]"}t
jtdƒ| jj
j|jƒƒ P qÌW t
jtdƒ| j jj
j|ƒƒ W Y d d }~X q” tjjk
�rœ } z^xV|jD ]L}d}| j jj|ƒ}|�rdtd ƒ| }td
ƒ}t
j|| j jj
j|ƒ|ƒ �q