404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.147.6.58: ~ $
3

e�$g+�@s�ddlZddlZddlZyddlmZdZdZdZWn ek
rTdZdZdZYnXd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)�N)�__version__z/etc/dnf/plugins/spacewalk.confzdnf-plugin-spacewalk�dnfz$/etc/yum/pluginconf.d/rhnplugin.confzyum-rhn-pluginZyumcCsNd}d}t�r6d}t�r*t�s4t�d}qFt�d}ntjjd�rFd}||fS)z!Enables plugin, may throw IOErrorr�z(/usr/lib/zypp/plugins/services/spacewalk)�PluginPackagePresent�PluginConfPresent�
PluginEnabled�enablePlugin�createDefaultPluginConf�os�path�exists)Zconf_changedZplugin_present�r
�/usr/lib/python3.6/pmPlugin.py�pluginEnablesrcCstj�}|jdt�}|j�S)zO Returns positive number if plugin package is installed, otherwise it return 0 Zprovidename)�rpmZTransactionSetZdbMatch�PM_PLUGIN_NAME�count)ZtsZheadersr
r
rr%srcCs(ytjt�dStk
r"dSXdS)z- Returns true if PM_PLUGIN_CONF is presented TFN)r
�stat�PM_PLUGIN_CONF�OSErrorr
r
r
rr+s

rcCs ttd�}|jd�|j�dS)z1 Create file PM_PLUGIN_CONF, with default values �wz[main]
enabled = 1
gpgcheck = 1N)�openr�write�close)�fr
r
rr	3s
r	cCs�ttd�}|j�}|j�d}d}xZ|D]R}tjd|�rNtjd|�rJd}nd}|r(tjd|�}|r(t|jd��rvd}q(d}q(W|S)zM Returns True if plugin is enabled
        Can thrown IOError exception.
    �rFz^\[.*]z^\[main]Tz^\s*enabled\s*=\s*([0-9])r)rr�	readlinesr�re�match�int�group)r�lines�main_section�result�line�mr
r
rr;s"

rcCs�ttd�}|j�}|j�d}ttd�}xJ|D]B}tjd|�rTtjd|�rPd}nd}|rftjdd|�}|j|�q.W|j�d	S)
ze enable plugin by setting enabled=1 in file PM_PLUGIN_CONF
        Can thrown IOError exception.
    rFrz^\[.*]z^\[main]Tz^(\s*)enabled\s*=.+z
\1enabled = 1N)rrrrrr�subr)rr!r"r$r
r
rrSs


r)r
rrrrrrZPM_NAME�ImportErrorrrrr	rrr
r
r
r�<module>s"


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
capabilities.cpython-36.opt-1.pyc File 5.28 KB 0644
capabilities.cpython-36.pyc File 5.34 KB 0644
cldetect.cpython-36.opt-1.pyc File 2.31 KB 0644
cldetect.cpython-36.pyc File 2.31 KB 0644
clientCaps.cpython-36.opt-1.pyc File 1.98 KB 0644
clientCaps.cpython-36.pyc File 1.98 KB 0644
clpwd.cpython-36.opt-1.pyc File 3.9 KB 0644
clpwd.cpython-36.pyc File 3.9 KB 0644
config.cpython-36.opt-1.pyc File 10.38 KB 0644
config.cpython-36.pyc File 10.38 KB 0644
debUtils.cpython-36.opt-1.pyc File 2.03 KB 0644
debUtils.cpython-36.pyc File 2.03 KB 0644
getMethod.cpython-36.opt-1.pyc File 2.25 KB 0644
getMethod.cpython-36.pyc File 2.25 KB 0644
haltree.cpython-36.opt-1.pyc File 3.07 KB 0644
haltree.cpython-36.pyc File 3.07 KB 0644
hardware.cpython-36.opt-1.pyc File 18.42 KB 0644
hardware.cpython-36.pyc File 18.42 KB 0644
hardware_gudev.cpython-36.opt-1.pyc File 7.69 KB 0644
hardware_gudev.cpython-36.pyc File 7.69 KB 0644
hardware_hal.cpython-36.opt-1.pyc File 6.73 KB 0644
hardware_hal.cpython-36.pyc File 6.73 KB 0644
hardware_udev.cpython-36.opt-1.pyc File 7.67 KB 0644
hardware_udev.cpython-36.pyc File 7.67 KB 0644
pkgUtils.cpython-36.opt-1.pyc File 269 B 0644
pkgUtils.cpython-36.pyc File 269 B 0644
pkgplatform.cpython-36.opt-1.pyc File 288 B 0644
pkgplatform.cpython-36.pyc File 288 B 0644
pmPlugin.cpython-36.opt-1.pyc File 2.45 KB 0644
pmPlugin.cpython-36.pyc File 2.45 KB 0644
rhnChannel.cpython-36.opt-1.pyc File 4.39 KB 0644
rhnChannel.cpython-36.pyc File 4.39 KB 0644
rhnHardware.cpython-36.opt-1.pyc File 468 B 0644
rhnHardware.cpython-36.pyc File 468 B 0644
rhnPackageInfo.cpython-36.opt-1.pyc File 1.9 KB 0644
rhnPackageInfo.cpython-36.pyc File 1.9 KB 0644
rhncli.cpython-36.opt-1.pyc File 7.17 KB 0644
rhncli.cpython-36.pyc File 7.17 KB 0644
rhnreg.cpython-36.opt-1.pyc File 27 KB 0644
rhnreg.cpython-36.pyc File 27.25 KB 0644
rhnreg_constants.cpython-36.opt-1.pyc File 13.69 KB 0644
rhnreg_constants.cpython-36.pyc File 13.69 KB 0644
rhnserver.cpython-36.opt-1.pyc File 4.6 KB 0644
rhnserver.cpython-36.pyc File 4.6 KB 0644
rpcServer.cpython-36.opt-1.pyc File 7.27 KB 0644
rpcServer.cpython-36.pyc File 7.27 KB 0644
rpmUtils.cpython-36.opt-1.pyc File 3.11 KB 0644
rpmUtils.cpython-36.pyc File 3.11 KB 0644
transaction.cpython-36.opt-1.pyc File 2.59 KB 0644
transaction.cpython-36.pyc File 2.59 KB 0644
tui.cpython-36.opt-1.pyc File 31.25 KB 0644
tui.cpython-36.pyc File 31.25 KB 0644
up2dateAuth.cpython-36.opt-1.pyc File 7.07 KB 0644
up2dateAuth.cpython-36.pyc File 7.07 KB 0644
up2dateErrors.cpython-36.opt-1.pyc File 13.32 KB 0644
up2dateErrors.cpython-36.pyc File 13.32 KB 0644
up2dateLog.cpython-36.opt-1.pyc File 2.48 KB 0644
up2dateLog.cpython-36.pyc File 2.48 KB 0644
up2dateUtils.cpython-36.opt-1.pyc File 4.06 KB 0644
up2dateUtils.cpython-36.pyc File 4.06 KB 0644