__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

`�g���H�SrSSKrSSKrSSKrSSKrSSKrSSKrSSKr\RRRSS9 SSKJ
r
Jr SSKJr SSKJr SSKrSS	KJr SS
KJrJr SrSr"S
S\
R45r"SS\5r\\SSj55rSrSSjr g)z�
The module provides a client to the PackageKit DBus interface. It allows to
perform basic package manipulation tasks in a cross distribution way, e.g.
to search for packages, install packages or codecs.
�NT)�set_as_default)�GObject�GLib�)�enums)�debconf)�	deferable)�convert_dbus_exception�TransactionFailed)�AptTransaction�	AptClient�get_transaction�
get_aptdaemoni�Qc
�d
�\rSrSrSr0S\RR\R\R44_S\RR\R\R\R\R\R\R\R\R44_S\RR\R\R44_S\RR\R\R44_S\RR\R\R\R44_S\RR\R\R44_S	\RR\R\R44_S
\RR\R\R44_S\RR\R\R44_S\RR\R\R44_S
\RR\R\R44_S\RR\R\R44_S\RR\R\R\R\R\R\R\R44_S\RR\R\R\R\R\R\R\R44_S\RR\R\R\R\R\R\R\R44_S\RR\R\R44_S\RR\RS4_\RR\RS4\RR\R\R44\RR\R\R44\RR\R\R44\RR\R\R44\RR\R\R44\RR\R\R44\RR\R\R\R44\RR\R\R\R44S.	Er\R "5rSrS,SjrSrSrSr\\S-Sj55r\\S-Sj55r\\S-Sj55r\\S-Sj55r\\S-S j55r\\S-S!j55r\\S-S"j55r\\S-S#j55r \\S-S$j55r!\\S%55r"\\S-S&j55r#S'r$\\S-S(j55r%\\S-S)j55r&\\S-S*j55r'S+r(g).r�6a�*Represents an aptdaemon transaction.

.. note:: This class cannot be inherited since it makes use of
          a metaclass.

.. signal:: allow-unauthenticated -> allow

    The signal is emitted when :attr:`allow_unauthenticated` changed.

    :param allow: If unauthenticated packages are allowed to be installed.

.. signal:: cancellable-changed -> cancellable

    The signal is emitted when :attr:`cancellable` changed.

    :param cancellable: If the transaction can be cancelled now.

.. signal:: config-file-conflict -> cur, new

    The signal is emitted when :attr:`config_file_conflict` changed.

    :param cur: The path to the current configuration file.
    :param new: The path to the new configuration file.

.. signal:: debconf-socket-changed -> path

    The signal is emitted when :attr:`debconf_socket` changed.

    :param path: The path to the socket which will be used to forward
        debconf communication to the user session.

.. signal:: dependencies-changed -> installs, re-installs, removals,                                         purges, upgrades, downgrades, kepts

    The signal is emitted when :attr:`dependencies` changed.

    Most likely after :meth:`simulate()` was called.

    :param installs: List of package which will be installed.
    :param reinstalls: List of package which will be re-installed.
    :param removals: List of package which will be removed,
    :param purges: List of package which will be removed including
        configuration files.
    :param upgrades: List of package which will be upgraded.
    :param downgrades: List of package which will be downgraded to an older
        version.
    :param kepts: List of package which will be skipped from upgrading.

.. signal:: download-changed -> download

    The signal is emitted when :attr:`download` changed.

    :param download: Download size integer in Bytes.

.. signal:: error -> error_code, error_details

    The signal is emitted when an error occured.

    :param error_code: The error code enumeration, e.g.
         :data:`aptdaemon.enums.ERROR_NO_CACHE`.
    :param error_details: The error description string.

.. signal:: finished -> exit_state

    The signal is emitted when the transaction is completed or has
    failed.

    :param exit_state: The exit status enumeration string.

.. signal:: http-proxy-changed -> uri

    The signal is emitted when :attr:`http_proxy` changed.

    :param uri: The URI of the proxy server, e.g. "http://proxy:8080".

.. signal:: locale-changed -> locale

    The signal is emitted when :attr:`locale` changed.

    :param locale: The language which should be used for messages,
        eg. "de_DE".

.. signal:: meta-data-changed -> meta_data

    The signal is emitted when :attr:`meta_data` changed.

    :param meta_data: The latest meta data dictionary.

.. signal:: medium-required -> name, device

    The signal is emitted when :attr:`required_medium` changed.

    :param name: The name of the volume.
    :param device: The path of the device in which the volume should
        be inserted.

.. signal:: remove-obsoleted-depends-changed -> remove

    The signal is emitted when :attr:`remove_obsoleted_depends` changed.

    :param remove: If obsolete dependencies should also be removed.

.. signal:: role-changed -> role

    The signal is emitted when :attr:`role` changed.

    :param role: The new role enum, e.g.
        :data:`~aptdaemon.enums.ROLE_UPDATE_CACHE`.

.. signal:: space-changed -> space

    The signal is emitted when :attr:`space` changed.
    Most likely after :meth:`simulate()` was called.

    :param space: Required disk space integer in Bytes. Can be negative
        if disk space will be freed.

.. signal:: packages-changed -> installs, re-installs, removals,                                     purges, upgrades, downgrades

    The signal is emitted when :attr:`packages` changed.

    :param installs: List of package which will be installed.
    :param reinstalls: List of package which will be re-installed.
    :param removals: List of package which will be removed,
    :param purges: List of package which will be removed including
        configuration files.
    :param upgrades: List of package which will be upgraded.
    :param downgrades: List of package which will be downgraded to an older
        version.

.. signal:: paused

    The signal is emitted when the transaction was paused.
    See :attr:`paused` and :sig:`resumed`.

.. signal:: progress-changed -> progress

    The signal is emitted when :attr:`progress` changed.

    :param progress: The progress integer.

.. signal:: progress-details-changed -> current_items, total_items,                                             currenty_bytes, total_bytes,                                             current_cps, eta

    The signal is emitted when detailed information of the progress
    is available.

    :param current_items: The number of already processed items.
    :param total_items: The number of all items.
    :param current_bytes: The number of already downloaded byte.
    :param total_bytes: The number of bytes which have to be downloaded
        totally.
    :param current_cps: The current download speed in bytes per second.
    :param eta: The elapsed time in seconds to accomplish the task.

.. signal:: progress-download-changed -> uri, short_desc, total_size,                                              current_size, msg

    The signal is emitted when progress information about a single
    download is available.

    :param uri: The URI of the file which is downloaded.
    :param status: The status of the downloade, e.g.
        :data:`~aptdaemon.enums.DOWNLOAD_AUTH_FAILED`.
    :param short_desc: A short description of the file.
    :param total_size: The size of the file in Bytes.
    :param current_size: How much of the file in Bytes has already be
        downloaded.
    :param msg: The status or error description.

.. signal:: resumed

    The signal is emitted when a paused transaction was resumed.
    See :attr:`paused` and :sig:`paused`.

.. signal:: terminal-changed -> path

    The signal is emitted when :attr:`terminal` changed.

    :param path: The path to the slave end of the controlling terminal
        for the underlying dpkg call.

.. signal:: terminal-attached-changed -> attached

    The signal is emitted when :attr:`term_attached` changed.

    :param attached: If the controlling terminal can be used.

.. signal:: unauthenticated-changed -> unauthenticated

    The signal is emitted when :attr:`unauthenticated` changed.

    :param unauthenticated: List of unauthenticated packages.

.. attribute:: cancellable

    If the transaction can be currently cancelled.

.. attribute:: config_file_conflict

    If there is a conflict in the configuration file handling during
    an installation this attribute contains a tuple of the path to the
    current and the new temporary configuration file.

    The :meth:`resolve_config_file_conflict()` can be used to
    resolve the conflict and continue the processing of the
    transaction.

.. attribute:: dependencies

    List of dependencies lists in the following order: packages to
    install, to re-install, to remove, to purge, to upgrade,
    to downgrade and to keep.

    You have to call :meth:`simulate()` to calculate the
    dependencies before the transaction will be executed.

.. attribute:: download

    The number of Bytes which have to be downloaed.

    You have to call :meth:`simulate()` to calculate the
    download size before the transaction will be executed.

.. attribute:: error

    In the case of a failed transaction this attribute holds the
    corresponding :exc:`errors.TransactionFailed` instance.

.. attribute:: error_code

    In the case of a failed transaction this attribute is set to the
    underlying error code, e.g.
    :data:`enums.ERROR_PACKAGE_DOWNLOAD_FAILED`.

.. attribute:: error_details

    In the case of a failed transaction this attribute contains a
    detailed error message in the language of the transaction.

.. attribute:: exit

    Contains the exit status enum if the transaction has been completed,
    e.g. :data:`enums.EXIT_SUCCESS` or :data:`enums.EXIT_FAILED`.

.. attribute:: http_proxy

    The URI to the http proxy server which should be used only for this
    transaction, e.g. "http://proxy:8080". It is recommended to set
    the system wide proxy server instead of setting this attribute
    for every transaction.

    See :meth:`set_http_proxy()`.

.. attribute:: meta_data

    Dictionary of optional meta data which can be set by client
    applications. See :meth:`set_meta_data()`.

.. attribute:: packages

   List of package lists which will be explicitly changed in the
   following order: packages to install, to re-install, to remove,
   to purge, to upgrade, to downgrade.

.. attribute:: paused

    If the transaction is currently paused, e.g. it is required to
    insert a medium to install from.

.. attribute:: progress

    An integer ranging from 0 to 101 to describe the progress of the
    transaction.

    .. note:: A value of 101 indicates that there cannot be made any
              assumptions on the progress of the transaction.

.. attribute:: remove_obsoleted_depends

    If dependencies which have been required by a removed package only
    should be removed, too.

.. attribute:: required_medium

    If a medium should be inserted to continue the fetch phase of a
    transaction, this attribute contains a tuple of the device path of
    of the drive which should be used and secondly of the name of the
    medium.

    The :func:`provide_medium()` method should be used to notify aptdaemon
    about an inserted medium and to continue processing the transaction.

.. attribute:: role

    The kind of action which is performed by the transaction, e.g.
    :data:`enums.ROLE_UPGRADE_SYSTEM`.

.. attribute:: space

    The required disk space in Bytes. Will be negative if space is
    freed.

    You have to call :meth:`simulate()` to calculate the
    download size before the transaction will be executed.

.. attribute:: status

    The enum of the current status, e.g.
    :data:`enums.STATUS_DOWNLOADING`.

.. attribute:: status_details

    A string describing the current status of the transaction.

.. attribute:: tid

    The unique identifier of the transaction. It is also the D-Bus path
    of the corresponding transaction object.

.. attribute:: term_attached

    If the the package manager can be controlled using the controlling
    terminal specified by :func:`set_terminal()`.

.. attribute:: unauthenticated

    List of packages which are going to be installed but are not
    downloaded from an authenticated repository.

    You have to call :meth:`simulate()` to calculate the
    dependencies before the transaction will be executed.
�finished�dependencies-changed�download-changed�
space-changed�error�role-changed�terminal-attached-changed�cancellable-changed�meta-data-changed�status-changed�status-details-changed�progress-changed�progress-details-changed�progress-download-changed�packages-changed�unauthenticated-changed�paused�)	�resumed�allow-unauthenticated-changed� remove-obsoleted-depends-changed�locale-changed�terminal-changed�debconf-socket-changed�http-proxy-changed�medium-required�config-file-conflictc��[RU$![a< [RR
"X/UQ70UD6nU[RU'Us$f=f)z&Cache transactions with identical tid.)r�
_tid_cache�KeyErrorr�Object�__new__)�cls�tid�args�kwargs�values     �2/usr/lib/python3/dist-packages/aptdaemon/client.pyr1�AptTransaction.__new__�sZ��	�!�,�,�S�1�1���	��N�N�*�*�3�E�d�E�f�E�E�-2�N�%�%�c�*��L�	�s��AA�ANc�T�[RRU5 Xl[RUlSUlSUlSUl[RUl
SUlSUlSUl
SUlSUlSUlSUlSUlSUl////////Ul//////Ul/Ul0UlSUlSUl0UlSUlSUlSUl/UlSUlU(d[@RB"5nURESU5Ul#[@RH"URFS5Ul%URMSURN5Ul(URJRSSURT5Ul+g)NF�r�org.debian.apt�org.debian.apt.transaction�PropertyChanged),r�__init__r3r�
ROLE_UNSET�roler�
error_code�
error_details�EXIT_UNFINISHED�exit�cancellable�
term_attached�required_medium�config_file_conflict�status�status_details�progressr"�
http_proxy�dependencies�packages�unauthenticated�	meta_data�remove_obsoleted_depends�download�	downloads�space�locale�_method�_args�_debconf_helper�dbus�	SystemBus�
get_object�_proxy�	Interface�_iface�watch_name_owner�_on_name_owner_changed�_owner_watcher�connect_to_signal�_on_property_changed�_signal_matcher)�selfr3�buss   r7r>�AptTransaction.__init__�s������ � ��&����$�$��	���
����!����)�)��	� ���"���#���$(��!���� �����
���������R��R��R�8����R��R��,��
�!������(-��%���
������
���������
�#�����.�.�"�C��n�n�%5�s�;����n�n�T�[�[�2N�O���!�2�2�3C�37�3N�3N�P���
�K�K�)�)�*;�*.�*C�*C�
E�	
��c��US:Xa�UR[R:XagURS[RS45 URSS5 URSS5 URS[R
5 ggg)	z(Fail the transaction if the daemon died.r:�ErrorzIt seems that the daemon died.�CancellableF�TerminalAttached�	ExitStateN)rDrrCrc�ERROR_DAEMON_DIED�EXIT_FAILED)re�
connections  r7r`�%AptTransaction._on_name_owner_changed%s������	�	�U�-B�-B� B��%�%�g��0G�0G�18�09�
:�
�%�%�m�U�;��%�%�&8�%�@��%�%�k�5�3D�3D�E�
!C�rhc���US:XaX lURSU5 g6US:XaX lURSU5 g6US:XaURSU5 g6US:XaURSU5 X lg6US	:XaURS
U5 g6US:XaURSU5 g6US
:XaX lUR"S/UQ76 g6US:XaX lUR"S/UQ76 g6US:XaX lURSU5 g6US:XaX lURSU5 g6US:XaX lURSU5 g6US:XaX l	URSU5 g6US:XaX l
URSU5 g6US:Xa4Uup4pVpxU(a&XEXgU4URU'UR"S/UQ76 g6g6US:XaX lURSU5 g6US:Xa!X l
US :waUR"S!/UQ76 g6g6US":XaX lURS#U5 g6US$:Xa1X lU(aURS%5 g6URS&5 g6US':Xa!X lUS :waUR"S(/UQ76 g6g6US):XaUR"S*/UQ76 g6US+:XaX lURS,U5 g6US-:XaX lURS.U5 g6US/:XaX lURS0U5 g6US1:XaYUuUlUlUR(S2:wa9[-UR(UR*5UlUR"S3/UQ76 g6g6US4:Xa�U[0R2:wavX R4:wafX lUR6(aUR6R95 UR;5 UR=UR>UR>S59 g6g6g6g6)7z(Callback for the PropertyChanged signal.rlrrkr�
DebconfSocketr)�RemoveObsoletedDependsr&�AllowUnauthenticatedr%�Terminalr(�Dependenciesr�Packagesr �Unauthenticatedr!�Localer'�Roler�Statusr�
StatusDetailsr�ProgressDownloadr�Progressr�ConfigFileConflict)r:r:r,�MetaDatar�Pausedr"r$�RequiredMediumr+�ProgressDetailsr�Downloadr�Spacer�	HttpProxyr*rjr:rrm��
reply_handler�
error_handlerN) rF�emitrErQrMrNrOrUr@rIrJrSrKrHrPr"rGrRrTrLrArBrrrrCrDrX�stop�_disconnect_from_dbus�sync�_on_final_sync_done)	re�
property_namer6�urirI�desc�sizerR�msgs	         r7rc�#AptTransaction._on_property_changed/s����.�.�!&���I�I�1�5�9�
�m�
+�$���I�I�+�U�3�
�o�
-��I�I�.��6�
�6�
6��I�I�8�%�@�,1�)�
�4�
4��I�I�5�u�=�
�j�
(��I�I�(�%�0�
�n�
,� %���I�I�,�5�u�5�
�j�
(�!�M��I�I�(�1�5�1�
�/�
/�#(� ��I�I�/��7�
�h�
&��K��I�I�&��.�
�f�
$��I��I�I�n�e�,�
�h�
&��K��I�I�&��.�
�o�
-�"'���I�I�.��6�
�0�
0�5:�2�C��X��'-�T�S�&I����s�#��	�	�5�>��>���j�
(�!�M��I�I�(�%�0�
�2�
2�(-�%��� ��	�	�0�9�5�9�!�
�j�
(�"�N��I�I�)�5�1�
�h�
&��K���	�	�(�#��	�	�)�$�
�.�
.�#(� ��� ��	�	�+�4�e�4�!�
�/�
/��I�I�0�9�5�9�
�j�
(�!�M��I�I�(�%�0�
�g�
%��J��I�I�o�u�-�
�k�
)�#�O��I�I�*�E�2�
�g�
%�27�/�D�O�T�/����"�$�.�t���/3�/A�/A�C��
��	�	�'�*�E�*�%��k�
)���-�-�-�%�9�9�2D�!�	��'�'��(�(�-�-�/��*�*�,��	�	��(@�(@�(,�(@�(@��B�3E�-�*rhc�p�URR5 URSUR5 g)Nr)ra�cancelr�rD)re�datas  r7r��"AptTransaction._on_final_sync_done�s&�����"�"�$��	�	�*�d�i�i�(rhc��^^�UU4SjnT(a2U(a+TRRS[RUUS9 gTRRS[RS9nU"U5 g)a)Sync the properties of the transaction with the daemon.

This method is called automatically on the creation of the
AptTransaction instance.

:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException
c�z>�UR5HupTRX5 M T(a	T"T5 gg�N)�itemsrc)�	prop_dictr�r6r�res   ��r7�sync_properties�,AptTransaction.sync.<locals>.sync_properties�s5���(1���(9�$�
��)�)�-�?�):���d�#�rhr<��dbus_interfacer�r�)r�N)r\�GetAllrY�PROPERTIES_IFACE)rer�r�r��
propertiess``   r7r��AptTransaction.sync�si���"	$�
�]��K�K���;�.2�.C�.C�-<�-:�
�
<�
���+�+�,�#�4�4�,�6�J�
�J�'rhc��URRURUU[S9$![anU(a
U"U5 SnAgeSnAff=f)a�Chain this transaction after the given one. The transaction will
fail if the previous one fails.

To start processing of the chain you have to call :meth:`run()`
of the first transaction. The others will be queued after it
automatically.

:param transaction: An AptTransaction on which this one depends.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException
 �r�r��timeoutN)r^�RunAfterr3�_APTDAEMON_DBUS_TIMEOUT�	Exception)re�transactionr�r�rs     r7�	run_after�AptTransaction.run_after�sW��(		��;�;�'�'����6C�6C�0G�(�I�
I���	���e�$�$���		�s�),�
A�A�
A�Ac��URRUU[S9$![anU(a
U"U5 SnAgeSnAff=f)a�Queue the transaction for processing.

:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.TransactionFailed, dbus.DBusException
r�N)r^�Runr�r�)rer�r�rs    r7�run�AptTransaction.run�sN��	��;�;�?�?��1>�+B�#�D�
D���	���e�$�$���		�s�!�
A�A�A�Ac�8�URRUUS9 g)auSimulate the transaction to calculate the dependencies, the
required download size and the required disk space.

The corresponding properties of the AptTransaction will be updated.

:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.TransactionFailed, dbus.DBusException
r�N)r^�Simulate�rer�r�s   r7�simulate�AptTransaction.simulate�s ��"	
�����=�+8�	�	:rhc�8�URRUUS9 g)a�Cancel the running transaction.

:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.NotAuthorizedError, dbus.DBusException
r�N)r^�Cancelr�s   r7r��AptTransaction.cancel�s ��	
������)6�	�	8rhc	�^^�T(aUU4SjnOSnTRRSSU[RUUS9 g)auUse the given http proxy for downloading packages in this
transaction.

:param proxy: The URL of the proxy server, e.g. "http://proxy:8080"
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.NotAuthorizedError, dbus.DBusException
    aptdaemon.errors.ForeignTransaction,
c�>�T"T5$r�r#�r�res��r7�<lambda>�/AptTransaction.set_http_proxy.<locals>.<lambda>�
���]�4�%8rhNr<r�r��r\�SetrYr�)re�proxyr�r��_reply_handlers` `  r7�set_http_proxy�AptTransaction.set_http_proxys=���"�8�N�!�N������4�k�5�'+�'<�'<�&4�&3�	�	5rhc	�^^�T(aUU4SjnOSnTRRSSU[RUUS9 g)aInclude no longer required dependencies which have been installed
automatically when removing packages.

:param remove_obsoleted_depends: If obsolete dependencies should be
    also removed.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
c�>�T"T5$r�r#r�s��r7r��=AptTransaction.set_remove_obsoleted_depends.<locals>.<lambda>9r�rhNr<rtr�r�)rerQr�r�r�s` `  r7�set_remove_obsoleted_depends�+AptTransaction.set_remove_obsoleted_depends&s?���$�8�N�!�N������4�0�2J�'+�'<�'<�&4�&3�		�	5rhc	�^^�T(aUU4SjnOSnTRRSSU[RUUS9 g)a�Allow to install unauthenticated packages.

Unauthenticated packages are from the repository of a vendor whose
key hasn't been installed. By default this is not allowed.

:param allow_unauthenticated: If unauthenticated packages can be
    installed.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
c�>�T"T5$r�r#r�s��r7r��:AptTransaction.set_allow_unauthenticated.<locals>.<lambda>Wr�rhNr<rur�r�)re�allow_unauthenticatedr�r�r�s` `  r7�set_allow_unauthenticated�(AptTransaction.set_allow_unauthenticatedBs?���(�8�N�!�N������4�.�0E�'+�'<�'<�&4�&3�		�	5rhc	��^^�T(aUU4SjnOSnS[R"5-n[RRU5(a-TRRSSU[RUUS9 g[R"U5Tl
TRRSSTRR[RUUS9 TRR5 g)a^Setup a debconf frontend to answer questions of the maintainer
scripts.

Debian allows packages to interact with the user during installation,
configuration and removal phase via debconf. Aptdaemon forwards the
communication to a debconf instance running as the user of the
client application.

:param frontend: The name of the debconf frontend which should be
    launched, e.g. gnome or kde. Defaults to gnome.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
 c�>�T"T5$r�r#r�s��r7r��5AptTransaction.set_debconf_frontend.<locals>.<lambda>xr�rhNz/run/user/%d/pk-debconf-socketr<rsr�)
�os�getuid�path�existsr\r�rYr�r�DebconfProxyrX�socket_path�start)re�frontendr�r�r��	pk_sockets` `   r7�set_debconf_frontend�#AptTransaction.set_debconf_frontend`s����.�8�N�!�N�4�r�y�y�{�B�	�
�7�7�>�>�)�$�$��K�K�O�O�8�/��#�4�4�,�+�	
�
-�

�&�3�3�H�=��������4�o��,�,�8�8�'+�'<�'<�&4�&3�		�	5�
	
���"�"�$rhc	��^^�URSS5mURSS5nT(aUU4SjnOSn[R"USS9nTRR	SSU[R
UUS	9 g)
a3Store additional meta information of the transaction in the
MetaData property of the transaction.

The method accepts key=value pairs. The key has to be prefixed with
an underscore separated identifier of the client application.

In the following example Software-Center sets an application name
and icon:

>>> Transaction.set_meta_data(sc_icon="shiny", sc_app="xterm")

:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
r�Nr�c�>�T"T5$r�r#r�s��r7r��.AptTransaction.set_meta_data.<locals>.<lambda>�r�rh�sv)�	signaturer<r�r�)�poprY�
Dictionaryr\r�r�)rer5r�r�rPr�s`    @r7�
set_meta_data�AptTransaction.set_meta_data�sm���.�
�
�?�D�9�
��
�
�?�D�9�
��8�N�!�N��O�O�F�d�;�	������4�j�)�'+�'<�'<�&4�&3�	�	5rhc	�^^�T(aUU4SjnOSnTRRSSU[RUUS9 g)a�Allow to set a controlling terminal for the underlying dpkg call.

See the source code of gtk3widgets.AptTerminal or console.ConsoleClient
as example.

>>> master, slave = pty.openpty()
>>> transaction.set_terminal(os.ttyname(slave))

:param terminal: The slave end of a tty.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
c�>�T"T5$r�r#r�s��r7r��-AptTransaction.set_terminal.<locals>.<lambda>�r�rhNr<rvr�r�)re�ttynamer�r�r�s` `  r7�set_terminal�AptTransaction.set_terminal�s=���*�8�N�!�N������4�j�'�'+�'<�'<�&4�&3�	�	5rhc�`�[US5(aURR5 U?gg)z0Stop monitoring the progress of the transaction.rdN)�hasattrrd�remove)res r7r��$AptTransaction._disconnect_from_dbus�s-���4�*�+�+�� � �'�'�)��$�,rhc	�^^�T(aUU4SjnOSnTRRSSU[RUUS9 g)a#Set the language for status and error messages.

:param locale: The locale name, e.g. de_DE@UTF-8.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
c�>�T"T5$r�r#r�s��r7r��+AptTransaction.set_locale.<locals>.<lambda>�r�rhNr<rzr�r�)re�locale_namer�r�r�s` `  r7�
set_locale�AptTransaction.set_locale�s=����8�N�!�N������4�h��'+�'<�'<�&4�&3�	�	5rhc�8�URRXUS9 g)a:Continue a paused transaction which waits for a medium to install
from.

:param medium: The name of the provided medium.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
 r�N)r^�
ProvideMedium)re�mediumr�r�s    r7�provide_medium�AptTransaction.provide_medium�s �� 	
���!�!�&�0=�	"�	?rhc�:�URRXUUS9 g)a�Continue a paused transaction which waits for the resolution of a
configuration file conflict.

:param config: The path to the current version of the configuration
    file.
:param answer: Can be either "keep" or "replace".
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: aptdaemon.errors.ForeignTransaction, dbus.DBusException
 r�N)r^�ResolveConfigFileConflict)re�config�answerr�r�s     r7�resolve_config_file_conflict�+AptTransaction.resolve_config_file_conflict�s$��&	
���-�-�f�<I�<I�	.�	Krh)rWrXr^rVrar\rdrErHrMrRrSrrArBrDrLrUrPrNr"rKrQrGr@rTrIrJrFr3rOr�)NN))�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�SignalFlags�	RUN_FIRST�	TYPE_NONE�TYPE_STRING�
TYPE_PYOBJECT�
TYPE_INT64�TYPE_BOOLEAN�TYPE_INT�__gsignals__�weakref�WeakValueDictionaryr.r1r>r`rcr�r	r
r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�__static_attributes__r#rhr7rr6s���N�`
f�J��!4�!4�!>�!>�!(�!2�!2�")�"5�"5�!7�!9�f�+�W�-@�-@�-J�-J�-4�->�->�.5�.C�.C�.5�.C�.C�.5�.C�.C�.5�.C�.C�.5�.C�.C�.5�.C�.C�.5�.C�.C�
.E�-F�f�'��)<�)<�)F�)F�)0�):�):�*1�*<�*<�)>�)@�f�$�g�&9�&9�&C�&C�&-�&7�&7�'.�'9�'9�&;�&=�f�$�g�1�1�;�;�%�/�/�&�2�2�G�4G�4G�H�J�%f�*#�W�%8�%8�%B�%B�%,�%6�%6�&-�&9�&9�%;�%=�+f�00�'�2E�2E�2O�2O�29�2C�2C�3:�3G�3G�2I�2K�1f�6*�G�,?�,?�,I�,I�,3�,=�,=�-4�-A�-A�,C�,E�7f�<(�'�*=�*=�*G�*G�*1�*;�*;�+2�+@�+@�*B�*D�=f�B%�w�':�':�'D�'D�'.�'8�'8�(/�(;�(;�'=�'?�Cf�H-�w�/B�/B�/L�/L�/6�/@�/@�07�0C�0C�/E�/G�If�N'��)<�)<�)F�)F�)0�):�):�*1�*:�*:�)<�)>�Of�T/��1D�1D�1N�1N�18�1B�1B�29�2B�2B�29�2B�2B�29�2D�2D�29�2D�2D�29�2B�2B�29�2D�2D�2F�1G�Uf�d0�'�2E�2E�2O�2O�29�2C�2C�3:�3F�3F�3:�3F�3F�3:�3F�3F�3:�3E�3E�3:�3E�3E�3:�3F�3F�3H�2I�ef�t'��)<�)<�)F�)F�)0�):�):�*1�*?�*?�*1�*?�*?�*1�*?�*?�*1�*?�*?�*1�*?�*?�*1�*?�*?�*A�)B�uf�D.��0C�0C�0M�0M�07�0A�0A�18�1F�1F�0H�0J�Ef�J�w�2�2�<�<�&�0�0�!�#�Kf�P!(� 3� 3� =� =� '� 1� 1� "� $�7>�6I�6I�6S�6S�6=�6G�6G�7>�7K�7K�6M�6O� �+�+�5�5��)�)� �-�-�/�91�(/�':�':�'D�'D�'.�'8�'8�(/�(;�(;�'=�'?�*1�)<�)<�)F�)F�)0�):�):�*1�*=�*=�)?�)A�07�/B�/B�/L�/L�/6�/@�/@�07�0C�0C�/E�/G�,3�+>�+>�+H�+H�+2�+<�+<�,3�,?�,?�+A�+C�)0�(;�(;�(E�(E�(/�(9�(9�)0�)<�)<�)0�)<�)<�)>�(?�.5�-@�-@�-J�-J�-4�->�->�.5�.A�.A�.5�.A�.A�.C�-D�Ef�L�P�,�,�.�J��(E�TF�ZB�x)���(���(�>������:������,��:���:�$��
8���
8���5���5�0��GK�5���5�4��DH�5���5�8��;?�+/�)%���)%�V��5���5�B��5���5�8%���5���5�,��?���?�"��IM�37�K���Krhrc�&�\rSrSrSrSSjr\\SSj55r\\SSj55r	\\SSj55r
\\SSj55r\\SS	j55r\\SS
j55r
\\SSj55r\\SSj55r\\SS
j55r\\SSj55r\\SSj55r\\SSj55r\\SSj55r\\SSj55rSr\R0S5rSrg)r
iz)Provides a complete client for aptdaemon.Nc���U(aXlO[R"5UlS[R"5-UlSUlg![a
 SUlNf=f)z Return a new AptClient instance.z%s.%sN)rfrYrZrU�getdefaultlocale�_locale�
ValueError�terminal)rerfs  r7r>�AptClient.__init__sS����H��~�~�'�D�H�	 �"�V�%<�%<�%>�>�D�L���
���	 ��D�L�	 �s�A�A#�"A#c�,�URSU/X#U5$)a,Create a new transaction to apply all avaibale upgrades.

:param safe_mode: If True only already installed packages will be
    updated. Updates which require to remove installed packages or to
    install additional packages will be skipped.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a
    defer.Deferred. This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�
UpgradeSystem��_run_transaction)re�	safe_mode�waitr�r�s     r7�upgrade_system�AptClient.upgrade_system(s$��.�$�$�_�y�k�%)�-�I�	Irhc�,�URSU/X#U5$)a�Create a new transaction to install the given packages from the
reporitories.

The version number and target release of the packages can be specified
using the traditional apt-get syntax, e.g. "xterm=281.1" to force
installing the version 281.1 of xterm or "xterm/experimental" to
force installing xterm from the experimental release.

:param package_names: List of names of the packages which should be
    installed.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a
    defer.Deferred. This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�InstallPackagesr�re�
package_namesr"r�r�s     r7�install_packages�AptClient.install_packagesBs%��8�$�$�%6���%)�-�I�	Irhc
	�F�U(dS/nURSXX4UU/XxU	5$)a�Create a new transaction to enable a repository.

:param src_type: The type of the repository (deb, deb-src).
:param uri: The main repository URI
   (e.g. http://archive.ubuntu.com/ubuntu)
:param dist: The distribution to use (e.g. stable or lenny-backports).
:param comps: List of components (e.g. main, restricted).
:param comment: A comment which should be added to the sources.list.
:param sourcesfile: (Optoinal) filename in sources.list.d.

:param wait: if True run the transaction immediately and return
    its exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
r:�
AddRepositoryr)
re�src_typer��dist�comps�comment�sourcesfiler"r�r�s
          r7�add_repository�AptClient.add_repositoryas9��:��D�E��$�$�_�&.�T�'�&1�&3�%)�-�I�	Irhc�x�[R"SS5nU(a�UR[RR	US55(aT[
R"US5 [RR	S[RRU55nURSX/X4U5$)a'Create a new transaction to install a local package file.

:param path: The absolute path to the .deb-file.
:param force: Force the installation of a .deb-file even if it
    violates the quality standard defined in the packaging policy.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�HOMENz.gvfsz/tmp�InstallFile)	r��getenv�
startswithr��join�shutil�copy�basenamer )rer��forcer"r�r��homes       r7�install_file�AptClient.install_file�s���4�y�y���&���D�O�O�B�G�G�L�L��w�$?�@�@��K�K��f�%��7�7�<�<�����(8�(8��(>�?�D��$�$�]�T�M�%)�-�I�	Irhc�,�URSU/X#U5$)a�Create a new transaction to upgrade installed packages.

The version number and target release of the packages can be specified
using the traditional apt-get syntax, e.g. "xterm=281.1" to force
installing the version 281.1 of xterm or "xterm/experimental" to
force installing xterm from the experimental release.

:param package_names: The list of package which should be upgraded.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�UpgradePackagesrr's     r7�upgrade_packages�AptClient.upgrade_packages�s%��4�$�$�%6���%)�-�I�	Irhc�,�URSU/X#U5$)a�Create a new transaction to remove installed packages.

:param package_names: The list of packages which should be removed.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�RemovePackagesrr's     r7�remove_packages�AptClient.remove_packages�s%��*�$�$�%5�
��%)�-�I�	Irhc
�p�Sn
XUXEU4Vs/sH
o�"U5PM nnURSUXxU	5$s snf)aUCreate a new transaction to perform a complex package management
task which allows to install, remove, upgrade or downgrade several
packages at the same time.

The version number and target release of the packages can be specified
using the traditional apt-get syntax, e.g. "xterm=281.1" to force
installing the version 281.1 of xterm or "xterm/experimental" to
force installing xterm from the experimental release.

:param install: List of packages to install.
:param reinstall: List of packages to re-install.
:param remove: List of packages to remove.
:param purge: List of packages to purge.
:param upgrade: List of packages to upgrade.
:param downgrade: List of packages to downgrade. The version of the
    package has to be appended to the name separated by a "=", e.g.
    "xterm=272-1".

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
c��U(dS/$U$)Nr:r#)�lsts r7�check_empty_list�3AptClient.commit_packages.<locals>.check_empty_list�s����t���
rh�CommitPackagesr)
re�install�	reinstallr��purge�upgrade�	downgrader"r�r�rLrK�pkgss
             r7�commit_packages�AptClient.commit_packages�sd��H	�
3:�f�27�)�2M�N�2M�#� ��%�2M��N��$�$�%5�t�%)�-�I�	I��Ns�3c�*�URS/XU5$)a�Create a new transaction to fix unsatisfied dependencies of
already installed packages.

Corresponds to the ``apt-get -f install`` call.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�FixBrokenDependsr�rer"r�r�s    r7�fix_broken_depends�AptClient.fix_broken_depends	s#��,�$�$�%7��%)�-�I�	Irhc�,�URSX/UXE5$)a@Create a new transaction to reconfigure already installed packages.

Corresponds to the ``dpkg-reconfigure`` call.

:param packages: List of package names which should be reconfigured.
:param priority: The minimum priority of question that will be
    displayed.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�Reconfigurer)rerN�priorityr"r�r�s      r7�reconfigure�AptClient.reconfigure"s%��2�$�$�]�X�4H�$�%2�C�	Crhc�*�URS/UX#5$)a�Create a new transaction to complete a previous interrupted
installation.

Corresponds to the ``dpkg --confgiure -a`` call.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�FixIncompleteInstallrrYs    r7�fix_incomplete_install� AptClient.fix_incomplete_install>s#��,�$�$�%;�R��%2�C�	Crhc�b�U(aURSU/UX45$URS/UX45$)a�Create a new transaction to update the package cache.

The repositories will be queried for installable packages.

:param sources_list: Path to a sources.list which contains repositories
    that should be updated only. The other repositories will
    be ignored in this case. Can be either the file name of a snippet
    in /etc/apt/sources.list.d or an absolute path.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�UpdateCachePartially�UpdateCacher)re�sources_listr"r�r�s     r7�update_cache�AptClient.update_cacheWsI��4��(�(�)?�*6���)6�G�
G��(�(���D�)6�G�
Grhc�,�URSU/X#U5$)a�Create a new transaction to enable the component of the
distribution repository.

:param component: The name of the component, e.g. main or universe.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�EnableDistroComponentr)re�	componentr"r�r�s     r7�enable_distro_component�!AptClient.enable_distro_componentys%��,�$�$�%<�y�k�%)�-�I�	Irhc�*�URS/XU5$)aVRemove all downloaded files.

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�CleanrrYs    r7�clean�AptClient.clean�s ��$�$�$�W�b�$�%2�4�	4rhc�.�URSXU/XEU5$)a/Install a license key to use a piece of proprietary software.

:param pkg_name: The package which requires the license
:param json_token: The oauth token in json format
:param server_name: The server name (ubuntu-procduction,
    ubuntu-staging)

:param wait: if True run the transaction immediately and return its
    exit state instead of the transaction itself.
:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
�
AddLicenseKeyr)re�pkg_name�
json_token�server_namer"r�r�s       r7�add_license_key�AptClient.add_license_key�s'��0�$�$�_�&.�K�%H�%)�%2�4�	4rhc�&^�U=(a TnURXUU5nU(a*U4Sjn	URU5 URU	5 U$[R
"5n
[
US5(d$U
RS5 [
US5(dM$[UR[R5(aURR5 URnUR(aUReU(a[UR[R :Xa1U
RS5 UR[R :XaM1UR$U$![anU(a
T"U5 SnAgeSnAff=f)Nc�f>�UR5 g![anT"U5 SnAgSnAff=f)z4Convert the DeferredException to a normal exception.N)�raise_exceptionr�)rr�s �r7�on_error�,AptClient._run_transaction.<locals>.on_error�s/���)��)�)�+�� �)�!�%�(�(��)�s��
0�+�0�resultT)�_run_transaction_helperr��
add_callbacks�add_errbackr�main_context_defaultr��	iteration�
isinstancer��defer�DeferredExceptionr}rrDrrC)re�method_namer4r"r�r��async_�deferredrr~�context�transs     `      r7r �AptClient._run_transaction�s?����0�=��	��3�3�K�t�4:�<�H��
)�
�"�"�=�1�� � ��*��O��/�/�1�G��h��1�1��!�!�$�'��h��1�1��(�/�/�5�+B�+B�C�C����/�/�1��O�O�E��{�{��k�k�!���j�j�E�$9�$9�9��%�%�d�+��j�j�E�$9�$9�9��z�z�!����G�	���e�$����	�s�E,�,
F�6F�
F�Fc#�h^# �[UR5nURU5nU(a<[R"5nU"UUR
UR[S.6 Uv�nOU"US[06n[X�R5n	UR(aU	RUR5v� UR(aU	RUR5v� U	R5v� U(aU(ax[R"5mU	RSU4Sj5n
U	R5v� Tv� [ R""U
5 [R$"U	R&5 OU(aU	R5v� [R$"U	5 g7f)N)r�r�r�r�rc�Z>�U[R:g=(a TRU5$r�)rrC�callback)r�rD�
deferred_waits  �r7r��3AptClient._run_transaction_helper.<locals>.<lambda>s)���!%��)>�)>�!>�">�!.�!7�!7��!=�">rh)rrf�get_dbus_methodr��Deferredr��errbackr�rrr�rr�r��connectr�r�
source_remove�return_valuerD)rer�r4r"r��daemon�dbus_methodr�r3r��sigr�s           @r7r��!AptClient._run_transaction_helper�s8�����t�x�x�(���,�,�[�9����~�~�'�H��9=�'/�&7�&7�&.�&6�&6� 7�
9�!�.�C��t�E�-D�E�C��s�H�H�-���<�<��"�"�4�<�<�0�0��=�=��$�$�T�]�]�3�3��j�j�l���F�!�N�N�,�M��-�-�
�!?�@�C��)�)�+�������s�#����u�z�z�*�
��)�)�+��
���5�!�s�F/F2)rrfrr�)TFNN)FNN)Nr:r:FNN)FFNN)�defaultFNN)NFNN)rrrrr	r>r	r
r#r)r2r?rCrGrUrZr_rcrirnrrryr r��inline_callbacksr�rr#rhr7r
r
s��3����GK�%)�I���I�0��HL�'+�I���I�:��FH�AE�%)� I��� I�D��HL�#'�I���I�>��HL�'+�I���I�6��27�:>�I���I�,��=A�&*�*I���*I�X��;?�)-�I���I�.��-6�BF�C���C�4��?C�-1�C���C�.��38�7;�G���G�@��6;�BF�I���I�.��4���4�&��FK�:>�4���4�6)�V���"��"rhr
c��U(d[R"5n[X5nU(aU(aURX#S9 gUR5 U$)a�Get an existing transaction by its identifier.

:param tid: The identifer and D-Bus path of the transaction
    e.g. /org/debian/apt/transaction/78904e5f9fa34098879e768032789109
:param bus: Optionally the D-Bus on which aptdaemon listens. Defaults
    to the system bus.

:param reply_handler: Callback function. If specified in combination
    with error_handler the method will be called asynchrounsouly.
:param error_handler: Errback function. In case of an error the given
    callback gets the corresponding exception instance.
:param defer: Run the method asynchrounsly and return a defer.Deferred.
    This options is only available as a keyword.

:raises: dbus.DBusException

:returns: An AptTransaction instance.
r�N)rYrZrr�)r3rfr�r�r�s     r7rrs>��*��n�n����3�$�E���
�
�
��
�L�
�
�
���rhc�H�SHnUS:aSX4-s $US-nM SUS4-$)z|Returns a human friendly string for a given byte size.

Note: The bytes are skipped from the returned unit: 1024 returns 1K
)r:�K�M�Gg�@z%3.1f%s�Tr#)�bytes�units  r7�get_size_stringr�/s<��
$���6�>���}�,�,�
����$���s�|�#�#rhc��U(d[R"5n[R"URSSS5S5$)z�Get the daemon D-Bus interface.

:param bus: Optionally the D-Bus on which aptdaemon listens. Defaults
    to the system bus.

:raises: dbus.DBusException

:returns: An dbus.Interface instance.
r;z/org/debian/aptF)rYrZr]r[)rfs r7rr;s=����n�n����>�>�#�.�.�)9�):�).�0�+�,�,rh)NNNr�)!r	rU�os.pathr�r:r�sysrY�dbus.mainloop.glib�mainloop�glib�
DBusGMainLoop�
gi.repositoryrrr:rrr��defer.utilsr	�errorsr
r�__all__r�r0r�objectr
rr�rr#rhr7�<module>r�s����6��
��
����
�
��� � �� �5�'����!�=�
M�� ��^K�W�^�^�^K�Bv"��v"�r������:	$�,rh

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 495 B 0644
client.cpython-313.pyc File 64.91 KB 0644
console.cpython-313.pyc File 33.16 KB 0644
core.cpython-313.pyc File 96.5 KB 0644
crash.cpython-313.pyc File 3.17 KB 0644
debconf.cpython-313.pyc File 9.05 KB 0644
enums.cpython-313.pyc File 20.51 KB 0644
errors.cpython-313.pyc File 9.93 KB 0644
gtk3widgets.cpython-313.pyc File 67.17 KB 0644
lock.cpython-313.pyc File 8.36 KB 0644
logger.cpython-313.pyc File 2.48 KB 0644
loop.cpython-313.pyc File 555 B 0644
networking.cpython-313.pyc File 12.09 KB 0644
policykit1.cpython-313.pyc File 7.13 KB 0644
progress.cpython-313.pyc File 43.79 KB 0644
utils.cpython-313.pyc File 5.03 KB 0644
Filemanager