403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/UpdateManager/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/UpdateManager/__pycache__/Dialogs.cpython-310.pyc
o

{��f9@�@s�ddlmZmZddlZe�dd�ddlmZddlmZddlmZddl	Z	e	�
dd	e�ddlZddl
Z
ddlZddlZddlZddlZd
dlmZd
dlmZdd
lmZddlmZGdd�de�ZGdd�deej�ZGdd�de�ZGdd�de�ZGdd�de�Z Gdd�de�Z!Gdd�de�Z"Gdd�de!�Z#Gdd �d e�Z$Gd!d"�d"e�Z%Gd#d$�d$e�Z&Gd%d&�d&e&�Z'Gd'd(�d(e�Z(dS))�)�absolute_import�print_functionN�Gtkz3.0)r)�Gdk)�Gio�ignorezAccessed deprecated property�)�LivePatchSocket)�get_dist)�gettext)�ngettextc@s6eZdZdd�Zdd�Zdd�Zdd�Zdd
d�Zd	S)
�DialogcCs
||_dS�N)�window_main��selfr�r�7/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py�__init__1s
zDialog.__init__cC�dSrr�rrrr�start4�zDialog.startcCs|��Sr)�stoprrrr�close7szDialog.closecCrrrrrrrr:rzDialog.stopNcCrrr�r�parentrrr�run=rz
Dialog.runr)�__name__�
__module__�__qualname__rrrrrrrrrr
0sr
c@s(eZdZdd�Zd	dd�Zd
dd�ZdS)�
BuilderDialogcCs@t�||�tj�|�|�||�}|�|�|��|��dSr)r
rr�	Alignment�_load_ui�add�
get_object�show)rr�ui_path�root_widget�builderrrrrBs
zBuilderDialog.__init__�update-managercCstt��}|�|�|�||g�|�|�|��D]}tt|�tj�r0tj�	|�}t
|||�qt�d|�q|S)Nz"WARNING: can not get name for '%s')
r�Builder�set_translation_domain�add_objects_from_file�connect_signals�get_objects�
issubclass�type�	Buildable�get_name�setattr�logging�debug)r�pathr(�domainr)�o�namerrrr#Js

zBuilderDialog._load_uiNcCs*|r|j�|�|j�d�|j��dS�NT)�
window_dialog�set_transient_for�	set_modalrrrrrrYszBuilderDialog.run)r*r)rrr rr#rrrrrr!As
r!c@sheZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�InternalDialogNcCsPtj�|jd�}t�|||d�tj�d�|_	d|_
|�|�|�d|j
�dS)Nzgtkbuilder/Dialog.ui�pane_dialogzcom.ubuntu.update-manager�realize)�osr7�join�datadirr!rr�Settings�new�settings�focus_button�set_content_widget�connect�_on_realize)rr�content_widgetr'rrrrbs
zInternalDialog.__init__cCs:|jr|j�d�|j�d�|j��|j��dSdSr;)rH�set_can_default�
set_can_focus�grab_default�
grab_focus)r�	user_datarrrrKls
�zInternalDialog._on_realizeFcsFtj�|�}|�d�fdd��|��|j�|�|j�||�|S)N�clickedcs��Srr)�x��callbackrr�<lambda>vsz+InternalDialog.add_button.<locals>.<lambda>)r�Button�new_from_stockrJr&�	buttonboxr$�set_child_secondary)r�labelrU�	secondary�buttonrrTr�
add_buttonsszInternalDialog.add_buttoncCs&tj�d�r|jtd�|jdd�SdS)Nz /usr/bin/software-properties-gtkuSettings…T)r\)rBr7�existsr^�_�on_settings_button_clickedrrrr�add_settings_button|s
�z"InternalDialog.add_settings_buttoncC�|j��dSr)r�
show_settingsrrrrra��z)InternalDialog.on_settings_button_clickedcCs(|r
|j�d|�|j�t|��dS)Nz+<span size='larger' weight='bold'>%s</span>)�label_header�
set_markup�set_visible�bool�rr[rrr�
set_header�s
�zInternalDialog.set_headercC�$|r|j�|�|j�t|��dSr)�
label_descrgrhrirjrrr�set_desc��zInternalDialog.set_desccCrlr)�main_containerr$rhri)rrLrrrrI�roz!InternalDialog.set_content_widgetcCst��}t�}|�|�Sr)�distro_info�UbuntuDistroInfor
�is_lts)r�di�codenamerrr�_is_livepatch_supported�s
z&InternalDialog._is_livepatch_supportedcCs2|�d�|s'|��r%|jr%|j�d�dkr%|�td��|j�td��dSd}|dkr0d}n\|dkr5nW|d	kr�|d
ksA|dkrDd}nH|dkrad
d�|D�}tddt|��t|�}|�|�n+|dksi|dkr�dd�|D�}tddt|��t|�}|�|�n
|dkr�n|dkr�	|r�|j	�
|j�dSdS)Nzlaunch-count�ze<b>Tip:</b> You can use Livepatch with Ubuntu Pro to keep your computer more secure between restarts.uSettings & Pro…Fzneeds-checkTzcheck-failed�checked�	unapplied�applying�appliedcS�g|]}|jr|�qSr��patched��.0�fixrrr�
<listcomp>��z<InternalDialog.on_livepatch_status_ready.<locals>.<listcomp>z3%d Livepatch update applied since the last restart.z4%d Livepatch updates applied since the last restart.zapplied-with-bugzapply-failedcSr|rr}rrrrr��r�z;%d Livepatch update failed to apply since the last restart.z<%d Livepatch updates failed to apply since the last restart.znothing-to-apply�unknown)rnrv�settings_buttonrG�get_intr`�	set_labelr�len�	lp_socket�
get_status�on_livepatch_status_ready)r�active�cs�ps�fixes�needs_reschedule�drrrr��sT
������z(InternalDialog.on_livepatch_status_readycCst�|_|j�|j�dSr)r	r�r�r�rrrr�check_livepatch_status�sz%InternalDialog.check_livepatch_statusr�F)rrr rrKr^rbrarkrnrIrvr�r�rrrrr?as


	.r?c@�eZdZdd�Zdd�ZdS)�StoppedUpdatesDialogcCsLt�||�|�td��|��|�td�|j�|�tj|j	j
�|_dS)Nz"You stopped the check for updates.z_Check Again)r?rrkr`rbr^�checkr�STOCK_OKrrrHrrrrr�s
�zStoppedUpdatesDialog.__init__cCrcr�r�start_updaterrrrr��rezStoppedUpdatesDialog.checkN)rrr rr�rrrrr��sr�c@seZdZddd�ZdS)�NoUpdatesDialogFcCsXt�||�|r|�td��n|�td��|��|_|�tj|j	j
�|_|��dS)Nz"No software updates are available.�,The software on this computer is up to date.)
r?rrkr`rbr�r^rr�rrrHr�)rr�error_occurredrrrr�s
�zNoUpdatesDialog.__init__Nr��rrr rrrrrr��sr�c@r�)�DistUpgradeDialogcCsrt�||�||_|�td��|�td�|j|jj|j	f�|�
�|�td�|j�|�t
j|jj�|_dS)Nr�z.However, %s %s is now available (you have %s).u
Upgrade…)r?r�meta_releaserkr`rn�flavor_name�
upgradable_to�version�current_dist_versionrbr^�upgraderr�rrrH�rrr�rrrr�s
�
�zDistUpgradeDialog.__init__cCsNd}|jr|jjr|jjjr|d}|jjjr|d}t�dddd|�dS)N�z -dz -p�/bin/sh�-cz</usr/bin/do-release-upgrade --frontend=DistUpgradeViewGtk3%s)r�options�
devel_release�use_proposedrB�execl)r�
extra_argsrrrr��s


��zDistUpgradeDialog.upgradeN)rrr rr�rrrrr���r�c@r�)�HWEUpgradeDialogcCs�t�||�|�td��tj��tjj	kr!|�
ttjjj��n
|�
ttjjj
��|��|�td�|j�|�tj|jj�|_dS)Nz3New important security and hardware support update.u_Install…)r?rrkr`�datetime�date�today�HweSupportStatus�consts�HWE_EOL_DATErn�Messages�HWE_SUPPORT_ENDS�HWE_SUPPORT_HAS_ENDEDrbr^�installrr�rrrHrrrrrs�
�zHWEUpgradeDialog.__init__cC�|jjdd�dS)NT)�hwe_upgrade)r�
start_installrrrrr��zHWEUpgradeDialog.installN)rrr rr�rrrrr�r�r�c@r�)�UnsupportedDialogcCsHt�|||�|�td�|j|jf�|�td�|j|jjf�dS)Nz2Software updates are no longer provided for %s %s.z,To stay secure, you should upgrade to %s %s.)	r�rrkr`r�r�rnr�r�r�rrrrs
��
�zUnsupportedDialog.__init__cCs|j|j_t�||�dSr)r<r�no_longer_supported_nagr�rrrrrr$s
zUnsupportedDialog.runN)rrr rrrrrrr�sr�c@seZdZdd�ZdS)�NoUpgradeForYouDialogcCsJt�||�|�td��|�td�||jf�|�tj|j	j
�|_dS)Nz1Sorry, there are no more upgrades for this systemz�
There will not be any further Ubuntu releases for this system's '%s' architecture.

Updates for Ubuntu %s will continue until 2023-04-26.

If you reinstall Ubuntu from ubuntu.com/download, future upgrades will be available.)r?rrkr`rnr�r^rr�rrrH)rrr��archrrrr+s
�
�zNoUpgradeForYouDialog.__init__Nr�rrrrr�*sr�c@s$eZdZdd�Zdd�Zdd�ZdS)�PartialUpgradeDialogcCsZt�||�|�td��|�td��|��|�td�|j�|�td�tj	�|_
dS)Nz Not all updates can be installeda2Run a partial upgrade, to install as many updates as possible.

    This can be caused by:
     * A previous upgrade which didn't complete
     * Problems with some of the installed software
     * Unofficial software packages not provided by Ubuntu
     * Normal changes of a pre-release version of Ubuntuz_Partial Upgrade�	_Continue)r?rrkr`rnrbr^r�r�	main_quitrHrrrrr;s�zPartialUpgradeDialog.__init__cCst�dddd�dS)Nr�r�zR/usr/lib/ubuntu-release-upgrader/do-partial-upgrade --frontend=DistUpgradeViewGtk3)rBr�rrrrr�Js
�zPartialUpgradeDialog.upgradecCst�|�t��dSr)r
rr�mainrrrrrOs
zPartialUpgradeDialog.startN)rrr rr�rrrrrr�:sr�c@seZdZddd�Zdd�ZdS)�ErrorDialogNcCsPt�||�|�|�|r|�|�|j�d�|��|�tj	|j
j�|_dSr;)
r?rrkrnrm�set_selectablerbr^rr�rrrH�rr�header�descrrrrVs


�zErrorDialog.__init__cCst�|�|j�dd�dS)Nr)r
rrm�
select_regionrrrrr`s
zErrorDialog.startr)rrr rrrrrrr�Us

r�c@s&eZdZddd�Zdd�Zdd�ZdS)	�UpdateErrorDialogNcCsBt�||||�|j��|�td�|j�|�tj|j	�|_dS)Nz
_Try Again)
r�rrH�destroyr^r`�updaterr��	availabler�rrrrhs
zUpdateErrorDialog.__init__cCrcrr�rrrrr�orezUpdateErrorDialog.updatecCr�)NT)r�)r�start_availablerrrrr�rr�zUpdateErrorDialog.availabler)rrr rr�r�rrrrr�gs
r�c@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�NeedRestartDialogcCsNt�||�|�td��|��|�td�|jj�|_|�td�|j	�dS)Nz;The computer needs to restart to finish installing updates.zRestart _Laterz_Restart Now)
r?rrkr`rbr^rrrH�restartrrrrrws�
�zNeedRestartDialog.__init__cCs4t�|�|j��|j���tjjtjj	B�dSr)
r
rrrA�
get_window�
set_functionsr�
WMFunction�MOVE�MINIMIZErrrrr�s



�zNeedRestartDialog.startcOs|��|j��dSr)�#_request_reboot_via_session_managerrr)r�args�kwargsrrrr��szNeedRestartDialog.restartcCs`zt��}|�dd�}t�|d�}|��WdStjy&|��YdSty/YdSw)Nzorg.gnome.SessionManagerz/org/gnome/SessionManager)�dbus�
SessionBusr%�	Interface�
RequestReboot�
DBusException�_request_reboot_via_consolekit�	Exception�r�bus�	proxy_obj�ifacerrrr��s��z5NeedRestartDialog._request_reboot_via_session_managercCs`zt��}|�dd�}t�|d�}|��WdStjy&|��YdSty/YdSw)Nzorg.freedesktop.ConsoleKitz#/org/freedesktop/ConsoleKit/Managerz"org.freedesktop.ConsoleKit.Manager)r��	SystemBusr%r��Restartr��_request_reboot_via_logindr�r�rrrr��s���z0NeedRestartDialog._request_reboot_via_consolekitcCsHzt��}|�dd�}t�|d�}|�d�WdStjy#YdSw)Nzorg.freedesktop.login1z/org/freedesktop/login1zorg.freedesktop.login1.ManagerT)r�r�r%r��Rebootr�r�rrrr��s���z,NeedRestartDialog._request_reboot_via_logindN)	rrr rrr�r�r�r�rrrrr�vs	
r�))�
__future__rr�gi�require_version�
gi.repositoryrrr�warnings�filterwarnings�DeprecationWarningr5r�r�rqrB�HweSupportStatus.constsr��Core.LivePatchSocketr	�
Core.utilsr
rr`r�objectr
r"r!r?r�r�r�r�r�r�r�r�r�r�rrrr�<module>sB� n



Youez - 2016 - github.com/yon3zu
LinuXploit