ó
    8.õgfŒ  ã                  óÔ  • S SK Jr  S SKrS SKrS SKrS SKrS SKJrJrJ	r	  S SK
JrJr  S SKrS SKrS SKJrJr  S SKJrJrJr   " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r " S S5      r " S S5      r " S S5      r  " S S5      r! " S S\!5      r" " S S\!5      r# " S S5      r$ " S S 5      r%S%S! jr&S%S" jr'S&S# jr(\)S$:X  a  \(" 5         gg)'é    )ÚannotationsN)ÚCallableÚIteratorÚKeysView)ÚAnyÚcast)ÚPackageÚVersion)ÚAcquireProgressÚInstallProgressÚ
OpProgressc                  ó   • \ rS rSrSrSrg)ÚFetchCancelledExceptioné&   zAException that is thrown when the user cancels a fetch operation.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú+/usr/lib/python3/dist-packages/apt/cache.pyr   r   &   s   † ÜKr   r   c                  ó   • \ rS rSrSrSrg)ÚFetchFailedExceptioné*   z-Exception that is thrown when fetching fails.r   Nr   r   r   r   r   r   *   s   † Ü7r   r   c                  ó   • \ rS rSrSrSrg)ÚUntrustedExceptioné.   z>Exception that is thrown when fetching fails for trust reasonsr   Nr   r   r   r   r   r   .   ó   † ÜHr   r   c                  ó   • \ rS rSrSrSrg)ÚLockFailedExceptioné2   z,Exception that is thrown when locking fails.r   Nr   r   r   r   r#   r#   2   s   † Ü6r   r#   c                  ó   • \ rS rSrSrSrg)ÚCacheClosedExceptioné6   z>Exception that is thrown when the cache is used after close().r   Nr   r   r   r   r&   r&   6   r!   r   r&   c                  ó6   • \ rS rSrSrSS jrS	S jrS
S jrSrg)Ú_WrappedLocké:   z\Wraps an apt_pkg.FileLock to raise LockFailedException.

Initialized using a directory path.c                ó‚   • Xl         [        R                  " [        R                  R                  US5      5      U l        g )NÚlock)Ú_pathÚapt_pkgÚFileLockÚosÚpathÚjoinÚ_lock)Úselfr1   s     r   Ú__init__Ú_WrappedLock.__init__?   s(   € ØŒ
Ü×%Ò%¤b§g¡g§l¡l°4¸Ó&@ÓAˆ�
r   c                óª   •  U R                   R                  5       $ ! [        R                   a"  n[	        SU R
                  < SU< 35      eS nAff = f)NzFailed to lock directory z: )r3   Ú	__enter__r.   ÚErrorr#   r-   )r4   Úes     r   r8   Ú_WrappedLock.__enter__C   sG   € ð	Ø—:‘:×'Ñ'Ó)Ð)øÜ�}‰}ó 	Ý%Ø7;·z´zÂ1ÐEóð ûð	ús   ‚ œA°AÁAc                ó:   • U R                   R                  XU5      $ ©N)r3   Ú__exit__)r4   ÚtypÚvalueÚ	tracebacks       r   r>   Ú_WrappedLock.__exit__K   s   € Ø�z‰z×"Ñ" 3¨yÓ9Ð9r   )r3   r-   N)r1   ÚstrÚreturnÚNone©rD   rE   )r?   Úobjectr@   rG   rA   rG   rD   rE   )	r   r   r   r   r   r5   r8   r>   r   r   r   r   r)   r)   :   s   † ñ+ôBô÷:r   r)   c                  óÞ  • \ rS rSrSr   S0       S1S jjrS2S jrS2S jrS3S jrS4S jr	S5S6S	 jjr
S2S
 jrS2S jrS7S jrS8S jrS9S jrS5S:S jjrS;S jrS<S jrS=S jrS>S jrS>S jrS?S jrS@S jrSAS jrSBSCS jjr\S?S j5       r\S?S j5       r\SDS j5       r      SES jr S5       SFS jjr   SG       SHS jjr SIS jr!  SJ       SKS  jjr"    SL         SMS! jjr#      SNS" jr$   SG       SOS# jjr%S2S$ jr&S2S% jr'S2S& jr(SPS' jr)          SQS( jr*SRS) jr+\SSS* j5       r,\S?S+ j5       r-\S?S, j5       r.\S?S- j5       r/\S?S. j5       r0S/r1g)TÚCacheéO   aX  Dictionary-like package cache.

The APT cache file contains a hash table mapping names of binary
packages to their metadata. A Cache object is the in-core
representation of the same. It provides access to APTs idea of the
list of available packages.

The cache can be used like a mapping from package names to Package
objects (although only getting items is supported).

Keyword arguments:
progress -- a OpProgress object,
rootdir  -- an alternative root directory. if that is given the system
sources.list and system lists/files are not read, only file relative
to the given rootdir,
memonly  -- build the cache in memory only.


.. versionchanged:: 1.0

    The cache now supports package names with special architecture
    qualifiers such as :all and :native. It does not export them
    in :meth:`keys()`, though, to keep :meth:`keys()` a unique set.
Nc           	     ó  • [        [        R                  S 5      U l        [        [        R                  S 5      U l        [        [        R                  S 5      U l        [        [        R                  S 5      U l	        0 U l
        0 U l        [        R                  " 5       U l        [        R                  " 5       U l        SU l        S U l        U R'                  SS5        U R'                  SS5        U(       a   [        R(                  R+                  SS5        U(       Gaª  [,        R.                  R1                  U5      n[,        R.                  R3                  US-   5      (       a(  [        R4                  " [        R(                  US-   5        [,        R.                  R7                  US-   5      (       a(  [        R8                  " [        R(                  US-   5        [        R(                  R+                  S	U5        [        R(                  R+                  S
US-   5        [,        R.                  R3                  [,        R.                  R;                  USSS5      5      (       a@  [        R(                  R+                  S[,        R.                  R;                  USSS5      5        U R=                  U5        [        R>                  " 5         [        R(                  RA                  S5      n[C        U5      U l"        U RG                  U5        g )NéÿÿÿÿÚcache_post_openÚ_inc_changes_countÚcache_post_changezDir::Cache::pkgcacheÚ z/etc/apt/apt.confú/etc/apt/apt.conf.dÚDirúDir::State::statusú/var/lib/dpkg/statusÚusrÚbinÚdpkgzDir::bin::dpkgúDir::Cache::Archives)$r   r.   rI   Ú_cacheÚDepCacheÚ	_depcacheÚPackageRecordsÚ_recordsÚ
SourceListÚ_listÚ
_callbacksÚ_callbacks2ÚweakrefÚWeakValueDictionaryÚ_weakrefÚWeakSetÚ_weakversionsÚ_changes_countÚ_sorted_setÚconnectÚconfigÚsetr0   r1   ÚabspathÚexistsÚread_config_fileÚisdirÚread_config_dirr2   Ú_check_and_create_required_dirsÚinit_systemÚfind_dirr)   Ú_archive_lockÚopen)r4   ÚprogressÚrootdirÚmemonlyÚarchive_dirs        r   r5   ÚCache.__init__i   s#  € ô &*¬'¯-©-¸Ó%>ˆŒÜ+/´×0@Ñ0@À$Ó+GˆŒÜ04Ü×"Ñ" Dó1
ˆŒô *.¬g×.@Ñ.@À$Ó)GˆŒ
ØFHˆŒð ð 	Ôô ×'Ò'Ó)ð 	Œô 8?·²Ó7HˆÔØ ˆÔØ-1ˆÔà�‰Ð&Ð(<Ô=Ø�‰Ð(Ð*>Ô?Þä�N‰N×ÑÐ5°rÔ:ßÜ—g‘g—o‘o gÓ.ˆGÜ�w‰w�~‰~˜gÐ(;Ñ;×<Ñ<Ü×(Ò(¬¯©¸ÐCVÑ9VÔWÜ�w‰w�}‰}˜WÐ'<Ñ<×=Ñ=Ü×'Ò'¬¯©¸ÐBWÑ8WÔXÜ�N‰N×Ñ˜u gÔ.Ü�N‰N×ÑÐ3°WÐ?UÑ5UÔVô �w‰w�~‰~œbŸg™gŸl™l¨7°E¸5À&ÓI×JÑJÜ—‘×"Ñ"Ø$¤b§g¡g§l¡l°7¸EÀ5È&Ó&Qôð
 ×0Ñ0°Ô9ô ×ÒÔ!ô —n‘n×-Ñ-Ð.DÓEˆÜ)¨+Ó6ˆÔà�	‰	�(Õr   c                ó8   • U R                   R                  5         g)zFix broken packages.N)r[   Ú
fix_broken©r4   s    r   r|   ÚCache.fix_broken    s   € à�‰×!Ñ!Õ#r   c                ó.   • U =R                   S-  sl         g)zIncrease the number of changesé   N)rg   r}   s    r   rN   ÚCache._inc_changes_count¤   s   € à×Ò˜qÑ Ör   c                ó@  • SS/n/ SQnU HC  n[         R                  R                  X-   5      (       a  M+  [         R                  " X-   5        ME     U HG  n[         R                  R                  X-   5      (       a  M+  [	        X-   S5      R                  5         MI     g)zN
check if the required apt directories/files are there and if
not create them
rT   z/etc/apt/sources.list)z/var/lib/dpkgz	/etc/apt/rQ   z/etc/apt/preferences.dz/var/cache/apt/archives/partialz/var/lib/apt/lists/partialÚwN)r0   r1   rm   Úmakedirsru   Úclose)r4   rw   ÚfilesÚdirsÚdÚfs         r   rq   Ú%Cache._check_and_create_required_dirs¨   s}   € ð #Ø#ð
ˆò
ˆó ˆAÜ—7‘7—>‘> '¡+×.Ó.ä—’˜G™KÖ(ñ ó ˆAÜ—7‘7—>‘> '¡+×.Ó.Ü�W‘[ #Ó&×,Ñ,Ö.ò r   c                óö   • XR                   ;   a5  U R                   U    H"  nUS:X  a  U R                  5         M  U" 5         M$     XR                  ;   a&  U R                  U    H  u  p#nU" U /UQ70 UD6  M     gg)z!internal helper to run a callbackrN   N)r`   rN   ra   ©r4   ÚnameÚcallbackÚargsÚkwdss        r   Ú_run_callbacksÚCache._run_callbacksÁ   sx   € à—?‘?Ó"Ø ŸO™O¨DÔ1�ØÐ3Ó3Ø×+Ñ+Ö-á–Jñ	 2ð ×#Ñ#Ó#Ø(,×(8Ñ(8¸Ô(>Ñ$� Ù˜Ð- Ò-¨Ô-ò )?ð $r   c                ó–  • Uc(  [         R                  R                  R                  5       nU R	                  5         Xl        U R                  S5        [        R                  " U5      U l	        [        R                  " U R                  5      U l        [        R                  " U R                  5      U l        [        R                  " 5       U l        U R                  R!                  5         SU l        U R%                  5         ['        [        R(                  " 5       5      S:„  U l        UR-                  5         U R                  S5        g)zDOpen the package cache, after that it can be used like
a dictionary
NÚcache_pre_openr€   rM   )Úaptrv   Úbaser   r…   Úop_progressr‘   r.   rI   rY   rZ   r[   r\   r]   r^   r_   Úread_main_listrh   Ú_Cache__remapÚlenÚget_architecturesÚ_have_multi_archÚdone)r4   rv   s     r   ru   Ú
Cache.openÎ   sà   € ð ÑÜ—|‘|×(Ñ(×3Ñ3Ó5ˆHà�
‰
ŒØ#ÔØ×ÑÐ,Ô-ä—m’m HÓ-ˆŒÜ ×)Ò)¨$¯+©+Ó6ˆŒÜ×.Ò.¨t¯{©{Ó;ˆŒÜ×'Ò'Ó)ˆŒ
Ø�
‰
×!Ñ!Ô#ØˆÔØ�‰Œä #¤G×$=Ò$=Ó$?Ó @À1Ñ DˆÔà�‰ŒØ×ÑÐ-Õ.r   c                óª  • [        U R                  R                  5       5       HR  n U R                  U   n U R                  UR
                  R                  UR
                  R                  4   Ul        MT     [        U R                  5       GH  nUR                  R
                  R                   HÌ  nUR                  UR                  R                  :X  d  M)  UR                  S:X  d@  UR                  R                  S:X  d&  UR                  UR                  R                  :X  d  My  UR                  UR                  R                  :X  d  MŸ  UR                   UR                  R                   :X  d  MÅ  XCl          Mò     U R                  R#                  U5        GM     g! [         a     GMŽ  f = f! [         a    U R                  U	  GM­  f = f)z‘Called after cache reopen() to relocate to new cache.

Relocate objects like packages and versions from the old
underlying cache to the new one.
r   N)Úlistrd   ÚkeysÚKeyErrorrY   Ú_pkgr�   ÚarchitectureÚLookupErrorrf   ÚpackageÚversion_listÚhashÚ_candÚsizeÚ
multi_archÚver_strÚremove)r4   ÚkeyÚpkgÚverÚvs        r   Ú__remapÚCache.__remapæ   sM  € ô ˜Ÿ™×*Ñ*Ó,Ö-ˆCðØ—m‘m CÑ(�ð'ØŸ;™; s§x¡x§}¡}°c·h±h×6KÑ6KÐ'KÑL�–ñ .ô ˜×*Ñ*×+ˆCà—[‘[×%Ñ%×2Ô2�ð —F‘F˜cŸi™iŸn™nÕ,ØŸ™ 1›¨¯	©	¯©¸!Ó(;¸q¿v¹vÈÏÉÏÉÕ?WØŸ™¨¯	©	×(<Ñ(<Õ<ØŸ	™	 S§Y¡Y×%6Ñ%6Õ6à !”IÚñ 3ð ×"Ñ"×)Ñ)¨#×.ò ,øô ó Ûðûô
 ó 'Ø—M‘M #Ô&ð'ús"   ¨F$¸>F6Æ$
F3Æ2F3Æ6GÇGc                óF   • U ? [        [        R                  S5      U l         g)zClose the package cacheN)r]   r   r.   r\   r}   s    r   r…   ÚCache.close  s   € ð ˆMÜœW×3Ñ3°TÓ:ˆ�r   c                ó   • U $ )zEnter the with statementr   r}   s    r   r8   ÚCache.__enter__  s   € àˆr   c                ó$   • U R                  5         g)zExit the with statementN)r…   )r4   Úexc_typeÚ	exc_valuerA   s       r   r>   ÚCache.__exit__  s   € à�
‰
�r   c                óÞ   •  [        U5      nU R                  U   nU R                  U5      (       d  [        SU-  5      eU R	                  U5      nU$ ! [         a    [        SU-  5      ef = f)z look like a dictionary (get key)z!The cache has no package named %r)rC   rY   r¢   Ú_Cache__is_real_pkgÚ_rawpkg_to_pkg)r4   r®   Úrawpkgr¯   s       r   Ú__getitem__ÚCache.__getitem__  s|   € ð	FÜ�c“(ˆCØ—[‘[ Ñ%ˆFð
 ×!Ñ! &×)Ñ)ÜÐ>ÀÑDÓEÐEà×!Ñ! &Ó)ˆàˆ
øô ó 	FÜÐ>ÀÑDÓEÐEð	Fús   ‚A ÁA,c                ó0   •  X   $ ! [          a    Us $ f = f)zQReturn *self*[*key*] or *default* if *key* not in *self*.

.. versionadded:: 1.1
)r¢   )r4   r®   Údefaults      r   ÚgetÚ	Cache.get$  s#   € ð
	Ø‘9ÐøÜó 	ØŠNð	ús   ‚ †”c                ój   • UR                  SS9nU R                  R                  U[        X5      5      $ )zWReturns the apt.Package object for an apt_pkg.Package object.

.. versionadded:: 1.0.0
T©Úpretty)Úget_fullnamerd   Ú
setdefaultr	   )r4   r¿   Úfullnames      r   r¾   ÚCache._rawpkg_to_pkg.  s3   € ð
 ×&Ñ&¨dÐ&Ð3ˆà�}‰}×'Ñ'¨´'¸$Ó2GÓHÐHr   c              #  ó¤   #   • U R                  5        H8  n[        X R                  U   5      nU R                  R	                  X5      v •  M:     g 7fr=   )r¡   r	   rY   rd   rÊ   ©r4   Úpkgnamer¯   s      r   Ú__iter__ÚCache.__iter__7  s?   é € ð —y‘y–{ˆGÜ˜$§¡¨GÑ 4Ó5ˆCØ—-‘-×*Ñ*¨7Ó8Ô8ò #ùs   ‚AAc                ó   • UR                   $ )z8Check if the apt_pkg.Package provided is a real package.)Úhas_versions)r4   r¿   s     r   Ú__is_real_pkgÚCache.__is_real_pkgA  s   € à×"Ñ"Ð"r   c                ó
   • X;   $ r=   r   ©r4   r®   s     r   Úhas_keyÚCache.has_keyE  ó
   € Ø‰{Ðr   c                ór   •  U R                  U R                  [        U5         5      $ ! [         a     gf = f©NF)r½   rY   rC   r¢   r×   s     r   Ú__contains__ÚCache.__contains__H  s7   € ð	Ø×%Ñ% d§k¡k´#°c³(Ñ&;Ó<Ð<øÜó 	Ùð	ús   ‚&) ©
6µ6c                ó4   • [        U R                  5       5      $ r=   )rš   r¡   r}   s    r   Ú__len__ÚCache.__len__N  s   € Ü�4—9‘9“;ÓÐr   c                ó¤   ^ • T R                   c.  [        U 4S jT R                  R                   5       5      T l         [	        T R                   5      $ )Nc              3  ór   >#   • U  H,  nTR                  U5      (       d  M  UR                  S S9v •  M.     g7f)TrÇ   N)r½   rÉ   )Ú.0Úpr4   s     €r   Ú	<genexpr>ÚCache.keys.<locals>.<genexpr>S  s3   øé € ð &â-�AØ×%Ñ% a×(ó ,�—‘ d�Õ+Ú-ùs   ƒ7¡7)rh   ÚsortedrY   Úpackagesr    r}   s   `r   r¡   Ú
Cache.keysQ  sF   ø€ Ø×ÑÑ#Ü%ô &àŸ™×-Ò-ó&ó  ˆDÔô
 �D×$Ñ$Ó%Ð%r   c                óÎ   • / nU R                   R                  nU R                  R                   H2  nU" U5      (       a  M  UR	                  U R                  U5      5        M4     U$ )zGet the marked changes)r[   Úmarked_keeprY   ré   Úappendr¾   )r4   Úchangesrì   r¿   s       r   Úget_changesÚCache.get_changesZ  sS   € àˆØ—n‘n×0Ñ0ˆØ—k‘k×*Ô*ˆFÙ˜v×&Ó&Ø—‘˜t×2Ñ2°6Ó:Ö;ñ +ð ˆr   c                óz   • U R                  5         U R                  R                  U5        U R                  5         g)z²Upgrade all packages.

If the parameter *dist_upgrade* is True, new dependencies will be
installed as well (and conflicting packages may be removed). The
default value is False.
N)Úcache_pre_changer[   ÚupgraderO   )r4   Údist_upgrades     r   ró   ÚCache.upgradec  s.   € ð 	×ÑÔØ�‰×Ñ˜|Ô,Ø×ÑÕ r   c                ó   • U R                   c  [        S5      e[        R                  " U R                  5      n[        R
                  " 5       nUR                  X R                  U R                   5        UR                  $ )z;Get the size of the packages that are required to download.ú&Cache object used after close() called)	r]   r&   r.   ÚPackageManagerr[   ÚAcquireÚget_archivesr_   Úfetch_needed)r4   ÚpmÚfetchers      r   Úrequired_downloadÚCache.required_downloadn  s\   € ð �=‰=Ñ Ü&Ð'OÓPÐPÜ×#Ò# D§N¡NÓ3ˆÜ—/’/Ó#ˆØ
�‰˜§¡¨T¯]©]Ô;Ø×#Ñ#Ð#r   c                ó.   • U R                   R                  $ )z8Get the size of the additional required space on the fs.)r[   Úusr_sizer}   s    r   Úrequired_spaceÚCache.required_spacex  s   € ð �~‰~×&Ñ&Ð&r   c                óz  • [        5       nU R                  R                  n[        [        R
                  [        R                  45      nU R                  R                   HW  nU" U5      nU(       d  M  UR                  (       a  M'  UR                  U;   d  M9  UR                  UR                  SS95        MY     U$ )zAReturn the packages not downloadable packages in reqreinst state.TrÇ   )rk   r[   Úget_candidate_verÚ	frozensetr.   ÚINSTSTATE_REINSTREQÚINSTSTATE_HOLD_REINSTREQrY   ré   ÚdownloadableÚ
inst_stateÚaddrÉ   )r4   Ú	reqreinstr  Ústatesr¯   Úcands         r   Úreq_reinstall_pkgsÚCache.req_reinstall_pkgs}  s–   € ô “Eˆ	Ø ŸN™N×<Ñ<ÐÜÜ×(Ñ(¬'×*JÑ*JÐKó
ˆð —;‘;×'Ô'ˆCÙ$ SÓ)ˆDßˆt˜D×-×-Ñ-°#·.±.ÀFÕ2JØ—‘˜c×.Ñ.°dÐ.Ð;Ö<ñ (ð Ðr   c                ó^  • Uc   [         R                  R                  SS5      nUR                   Vs/ s H  o3R                  (       a  M  UPM     nnU(       a+  U(       d$  [        SSR                  S U 5       5      -  5      eUR                  5       nSnSnUR                   HT  nUR                  UR                  :X  a  M  UR                  (       a  M2  USUR                   SUR                   S3-  nS	nMV     XQR                  :X  a  [        U5      eU(       a  [        U5      eU$ s  snf )
NzAPT::Get::AllowUnauthenticatedFzUntrusted packages:
%sÚ
c              3  ó8   #   • U  H  oR                   v •  M     g 7fr=   )Údesc_uri)rä   Úis     r   ræ   Ú%Cache._run_fetcher.<locals>.<genexpr>–  s   é € Ð5TÊ)ÀQ·j¶jÊ)ùs   ‚rP   zFailed to fetch Ú T)r.   rj   Úfind_bÚitemsÚ
is_trustedr   r2   ÚrunÚstatusÚ	STAT_DONEÚ	STAT_IDLEr  Ú
error_textÚRESULT_CANCELLEDr   r   )r4   rý   Úallow_unauthenticatedÚitemÚ	untrustedÚresÚfailedÚerr_msgs           r   Ú_run_fetcherÚCache._run_fetcher‹  s
  € ð !Ñ(Ü$+§N¡N×$9Ñ$9Ø3°Uó%Ð!ð '.§m¢mÓK¢m˜d¿?½?—T¡mˆ	ÐKÞÖ2Ü$Ø)¨D¯I©IÑ5TÉ)Ó5TÓ,TÑTóð ð
 �k‰k‹mˆð ˆØˆØ—M”MˆDØ�{‰{˜dŸn™nÓ,ÙØ�~�~ÙØÐ)¨$¯-©-¨¸¸$¿/¹/Ð9JÈ"ÐMÑMˆGØŠFñ "ð ×*Ñ*Ó*Ü)¨'Ó2Ð2ÞÜ& wÓ/Ð/Øˆ
ùò3 Ls   ²D*Á
D*c                ó¬   • U R                   c  [        S5      eUR                  XR                  U R                   5      (       d  gU R	                  X5      $ )zfetch the needed archivesr÷   F)r]   r&   rú   r_   r'  )r4   rý   rü   r!  s       r   Ú_fetch_archivesÚCache._fetch_archives®  sK   € ð �=‰=Ñ Ü&Ð'OÓPÐPð �‰˜w¯
©
°D·M±M×BÑBØð × Ñ  Ó@Ð@r   c                ó\  • Ub  Ub  [        S5      eUc(  [        R                  R                  R	                  5       nUc  [
        R                  " U5      nU R                     U R                  U[
        R                  " U R                  5      U5      sSSS5        $ ! , (       d  f       g= f)a�  Fetch the archives for all packages marked for install/upgrade.

You can specify either an :class:`apt.progress.base.AcquireProgress()`
object for the parameter *progress*, or specify an already
existing :class:`apt_pkg.Acquire` object for the parameter *fetcher*.

The return value of the function is undefined. If an error occurred,
an exception of type :class:`FetchFailedException` or
:class:`FetchCancelledException` is raised.

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.8.0
Nz'Takes a progress or a an Acquire object)Ú
ValueErrorr•   rv   Útextr   r.   rù   rt   r*  rø   r[   )r4   rv   rý   r!  s       r   Úfetch_archivesÚCache.fetch_archivesÀ  s†   € ð, Ñ GÑ$7ÜÐFÓGÐGØÑÜ—|‘|×(Ñ(×8Ñ8Ó:ˆHØ‰?Ü—o’o hÓ/ˆGà×ÓØ×'Ñ'Øœ×/Ò/°·±Ó?ÐAVó÷  ××ús   Á"1BÂ
B+c                óœ   •  U R                   U   n[        UR                  =(       a    UR                  (       + 5      $ ! [         a     gf = f)z0Return whether the package is a virtual package.F)rY   ÚboolÚhas_providesrÓ   r¢   rÎ   s      r   Úis_virtual_packageÚCache.is_virtual_packageâ  sK   € ð	CØ—+‘+˜gÑ&ˆCô ˜×(Ñ(×A°×1AÑ1AÔ-AÓBÐBøô ó 	Ùð	ús   ‚> ¾
AÁ
Ac                ó   • [        5       nU R                  R                  n U R                  U   nUR                  (       a  U(       d  [        U5      $ UR                   HF  u  pxn	U	R                  n
U(       a  X•" U
5      :X  d  M&  UR                  U R                  U
5      5        MH     [        U5      $ ! [         a    [        U5      s $ f = f)aÙ  Return a list of all packages providing a package.

Return a list of packages which provide the virtual package of the
specified name.

If 'candidate_only' is False, return all packages with at
least one version providing the virtual package. Otherwise,
return only those packages where the candidate version
provides the virtual package.

If 'include_nonvirtual' is True then it will search for all
packages providing pkgname, even if pkgname is not itself
a virtual pkg.
)rk   r[   r  rY   rÓ   r    r¢   Úprovides_listÚ
parent_pkgr  r¾   )r4   rÏ   Úcandidate_onlyÚinclude_nonvirtualÚ	providersr  ÚvpÚprovidesÚprovidesverÚversionr¿   s              r   Úget_providing_packagesÚCache.get_providing_packagesë  s²   € ô* #&£%ˆ	Ø ŸN™N×<Ñ<Ðð	#Ø—‘˜WÑ%ˆBØ��Ö'9Ü˜I“Ð&ð /1×.>Ô.>Ñ*ˆH 7Ø×'Ñ'ˆFÞ! gÐ1BÀ6Ó1JÕ&JØ—‘˜d×1Ñ1°&Ó9Ö:ñ /?ô �I‹Ðøô ó 	#Ü˜	“?Ò"ð	#ús   ¢1B5 Â5CÃCc                óX  • [        [        R                  R                  S5      5         U(       Ga   [        R                  R	                  S5      n[        R                  R	                  S5      n[        R                  R	                  S5      n[        R                  R                  S[        R                  R                  U5      5        [        R                  R                  SS5        [        R                  R                  SS5        [        R                  " 5       nUR                  5         OU R                  n Uc(  [        R                  R                  R                  5       n U R                   R#                  XU5      n	U	(       d  U(       a
  ['        5       eU	U(       a`  [        R                  R                  SW5        [        R                  R                  SW5        [        R                  R                  SW5        sSSS5        $ ! [$         a  n
['        U
5      eSn
A
ff = f! U(       aa  [        R                  R                  SW5        [        R                  R                  SW5        [        R                  R                  SW5        f f = f! , (       d  f       g= f)aÍ  Run the equivalent of apt-get update.

You probably want to call open() afterwards, in order to utilise the
new cache. Otherwise, the old cache will be used which can lead to
strange bugs.

The first parameter *fetch_progress* may be set to an instance of
apt.progress.FetchProgress, the default is apt.progress.FetchProgress()
.
sources_list -- Update a alternative sources.list than the default.
Note that the sources.list.d directory is ignored in this case
zDir::State::ListszDir::Etc::sourcelistzDir::Etc::sourcepartszAPT::List-CleanupÚxxxÚ0N)r)   r.   rj   rs   Úfindrk   r0   r1   rl   r^   r˜   r_   r•   rv   r–   r   rY   ÚupdateÚSystemErrorr   )r4   Úfetch_progressÚpulse_intervalÚraise_on_errorÚsources_listÚold_sources_listÚold_sources_list_dÚold_cleanupÚslistr$  r:   s              r   rF  ÚCache.update  så  € ô& œ'Ÿ.™.×1Ñ1Ð2EÓFÕGßÜ#*§>¡>×#6Ñ#6Ð7MÓ#NÐ Ü%,§^¡^×%8Ñ%8Ð9PÓ%QÐ"Ü%Ÿn™n×1Ñ1Ð2EÓF�Ü—‘×"Ñ"Ø*¬B¯G©G¯O©O¸LÓ,Iôô —‘×"Ñ"Ð#:¸EÔBÜ—‘×"Ñ"Ð#6¸Ô<Ü×*Ò*Ó,�Ø×$Ñ$Õ&àŸ
™
�ðIØ!Ñ)Ü%(§\¡\×%6Ñ%6×%FÑ%FÓ%H�Nð2ØŸ+™+×,Ñ,¨^ÀNÓS�Cö ž~Ü.Ó0Ð0àæÜ—N‘N×&Ñ&Ð'=Ð?OÔPÜ—N‘N×&Ñ&Ð'>Ð@RÔSÜ—N‘N×&Ñ&Ð':¸KÔH÷= HÑGøô( #ó 2Ü.¨qÓ1Ð1ûð2ûö  Ü—N‘N×&Ñ&Ð'=Ð?OÔPÜ—N‘N×&Ñ&Ð'>Ð@RÔSÜ—N‘N×&Ñ&Ð':¸KÕHð  ú÷7 HÕGúsJ   ©DJÄ?+H.Å+HÆH.Æ A'JÈ
H+ÈH&È&H+È+H.È.A*JÊJÊ
J)c                óÎ  •  UR                  5         [        R                  " 5       nU(       a  [        R
                  " 5          UR                  U5      nU(       a  [        R                  " 5          UR                  5         U$ ! [         a    UR                  5          NŽf = f! U(       a  [        R                  " 5         f f = f! [         a    UR                  5          U$ f = f)a!  
The first parameter *pm* refers to an object returned by
apt_pkg.PackageManager().

The second parameter *install_progress* refers to an InstallProgress()
object of the module apt.progress.

This releases a system lock in newer versions, if there is any,
and reestablishes it afterwards.
)
ÚstartUpdateÚAttributeErrorÚstart_updater.   Úpkgsystem_is_lockedÚpkgsystem_unlock_innerr  Úpkgsystem_lock_innerÚfinishUpdateÚfinish_update)r4   rü   Úinstall_progressÚ
did_unlockr$  s        r   Úinstall_archivesÚCache.install_archivesB  sÃ   € ð	,Ø×(Ñ(Ô*ô ×0Ò0Ó2ˆ
ÞÜ×*Ò*Ô,ð	/Ø"×&Ñ& rÓ*ˆCæÜ×,Ò,Ô.ð	-Ø×)Ñ)Ô+ð ˆ
øô# ó 	,Ø×)Ñ)Ö+ð	,ûö Ü×,Ò,Õ.ð ûô
 ó 	-Ø×*Ñ*Õ,Øˆ
ð	-ús/   ‚B ÁB$ Á2C ÂB!Â B!Â$CÃC$Ã#C$c                óè  • Uc(  [         R                  R                  R                  5       nUc(  [         R                  R                  R	                  5       nUc   e[
        R                  " 5          [
        R                  " U R                  5      n[
        R                  " U5      nU R                      U R                  XTU5      nU R                  XB5      nXdR                  :X  a  OJXdR                  :X  a  [        S5      eXdR                   :X  a  O[        SU-  5      eUR#                  5         M}  SSS5        SSS5        WWR                  :H  $ ! , (       d  f       N%= f! , (       d  f       N.= f)aÙ  Apply the marked changes to the cache.

The first parameter, *fetch_progress*, refers to a FetchProgress()
object as found in apt.progress, the default being
apt.progress.FetchProgress().

The second parameter, *install_progress*, is a
apt.progress.InstallProgress() object.

The keyword-only parameter *allow_unauthenticated* specifies whether
to allow unauthenticated downloads. If not specified, it defaults to
the configuration option `APT::Get::AllowUnauthenticated`.
NzinstallArchives() failedz<internal-error: unknown result code from InstallArchives: %s)r•   rv   r–   r   r   r.   Ú
SystemLockrø   r[   rù   rt   r*  r\  ÚRESULT_COMPLETEDÚRESULT_FAILEDrG  ÚRESULT_INCOMPLETEÚshutdown)r4   rH  rZ  r!  rü   rý   r$  s          r   ÚcommitÚCache.commite  s?  € ð4 Ñ!Ü Ÿ\™\×.Ñ.×>Ñ>Ó@ˆNØÑ#Ü"Ÿ|™|×0Ñ0×@Ñ@ÓBÐàÑ+Ð+Ð+ä×ÒÕ!Ü×'Ò'¨¯©Ó7ˆBÜ—o’o nÓ5ˆGØ×#Ó#Øà×.Ñ.¨wÐ<QÓR�Cð ×/Ñ/°ÓE�CØ×1Ñ1Ó1ØØ× 0Ñ 0Ó0Ü)Ð*DÓEÐEØ× 4Ñ 4Ó4Øä)ð<Ø>AñBóð ð
 ×$Ñ$Ô&ñ% ÷ $÷ "ð. �b×)Ñ)Ñ)Ð)÷) $Õ#ú÷ "Õ!ús&   Á1AE#Â4A?EÄ3E#Å
E 	ÅE#Å#
E1c                ó8   • U R                   R                  5         g)zUnmark all changesN)r[   Úinitr}   s    r   ÚclearÚCache.clearŸ  s   € à�‰×ÑÕr   c                ó&   • U R                  S5        g)z>called internally if the cache has changed, emit a signal thenrO   N©r‘   r}   s    r   rO   ÚCache.cache_post_change¥  s   € à×ÑÐ/Õ0r   c                ó&   • U R                  S5        g)zEcalled internally if the cache is about to change, emit
a signal thenrò   Nrk  r}   s    r   rò   ÚCache.cache_pre_change©  s   € ð 	×ÑÐ.Õ/r   c                óÀ   • US:w  a  [         R                  " S[        S5        XR                  ;  a  / U R                  U'   U R                  U   R	                  U5        g)zŠConnect to a signal.

.. deprecated:: 1.0

    Please use connect2() instead, as this function is very
    likely to cause a memory leak.
rN   zAconnect() likely causes a reference cycle, use connect2() insteadé   N)ÚwarningsÚwarnÚRuntimeWarningr`   rí   )r4   r�   rŽ   s      r   ri   ÚCache.connect®  sS   € ð Ð+Ó+Ü�MŠMØVÜØôð
 —‘Ó&Ø$&ˆD�O‰O˜DÑ!Ø�‰˜Ñ×$Ñ$ XÕ.r   c                ó€   • XR                   ;  a  / U R                   U'   U R                   U   R                  X#U45        g)aë  Connect to a signal.

The callback will be passed the cache as an argument, and
any arguments passed to this function. Make sure that, if you
pass a method of a class as your callback, your class does not
contain a reference to the cache.

Cyclic references to the cache can cause issues if the Cache object
is replaced by a new one, because the cache keeps a lot of objects and
tens of open file descriptors.

currently only used for cache_{post,pre}_{changed,open}.

.. versionadded:: 1.0
N)ra   rí   rŒ   s        r   Úconnect2ÚCache.connect2À  s>   € ð$ ×'Ñ'Ó'Ø%'ˆD×Ñ˜TÑ"Ø×Ñ˜Ñ×%Ñ% x°tÐ&<Õ=r   c                óB   • [         R                  " U R                  5      $ )ao  Return an `ActionGroup` object for the current cache.

Action groups can be used to speedup actions. The action group is
active as soon as it is created, and disabled when the object is
deleted or when release() is called.

You can use the action group as a context manager, this is the
recommended way::

    with cache.actiongroup():
        for package in my_selected_packages:
            package.mark_install()

This way, the action group is automatically released as soon as the
with statement block is left. It also has the benefit of making it
clear which parts of the code run with a action group and which
don't.
)r.   ÚActionGroupr[   r}   s    r   ÚactiongroupÚCache.actiongroupÖ  s   € ô& ×"Ò" 4§>¡>Ó2Ð2r   c                ó.  • [         R                  R                  [        R                  R                  S5      5      n[         R                  " [         R                  R                  US5      5       H!  n[        R                  " US5      (       d  M!    g   g)zºReturn True if the dpkg was interrupted

All dpkg operations will fail until this is fixed, the action to
fix the system if dpkg got interrupted is to run
'dpkg --configure -a' as root.
rS   Úupdatesz[0-9]*TF)	r0   r1   Údirnamer.   rj   Ú	find_fileÚlistdirr2   Úfnmatch)r4   Údpkg_status_dirr‰   s      r   Údpkg_journal_dirtyÚCache.dpkg_journal_dirtyë  sg   € ô Ÿ'™'Ÿ/™/Ü�N‰N×$Ñ$Ð%9Ó:ó
ˆô —’œBŸG™GŸL™L¨¸)ÓDÖEˆAÜ�Š˜q (×+Ó+Ùñ Fð r   c                ó.   • U R                   R                  $ )z7Return the number of packages with broken dependencies.)r[   Úbroken_countr}   s    r   r†  ÚCache.broken_countû  s   € ð �~‰~×*Ñ*Ð*r   c                ó.   • U R                   R                  $ )z2Return the number of packages marked for deletion.)r[   Ú	del_countr}   s    r   Údelete_countÚCache.delete_count   s   € ð �~‰~×'Ñ'Ð'r   c                ó.   • U R                   R                  $ )z6Return the number of packages marked for installation.)r[   Ú
inst_countr}   s    r   Úinstall_countÚCache.install_count  ó   € ð �~‰~×(Ñ(Ð(r   c                ó.   • U R                   R                  $ )z-Return the number of packages marked as keep.)r[   Ú
keep_countr}   s    r   r’  ÚCache.keep_count
  r�  r   )rt   rY   r`   ra   rg   r[   rœ   r_   r]   rh   rd   rf   r—   )NNF)rv   úOpProgress | Nonerw   ú
str | Nonerx   r2  rD   rE   rF   )rw   rC   rD   rE   )r�   rC   rD   rE   r=   )rv   r”  rD   rE   )rD   rI   )r¹   rG   rº   rG   rA   rG   rD   rE   )r®   rG   rD   r	   )r®   rG   rÃ   rG   rD   r   )r¿   úapt_pkg.PackagerD   r	   ©rD   zIterator[Package])r¿   r–  rD   r2  ©r®   rG   rD   r2  ©rD   Úint)rD   z	list[str])rD   úlist[Package])F)rô   r2  rD   rE   )rD   zset[str])rý   úapt_pkg.Acquirer!  úbool | NonerD   rš  )rý   rœ  rü   úapt_pkg.PackageManagerr!  r�  rD   rš  )NNN)rv   úAcquireProgress | Nonerý   zapt_pkg.Acquire | Noner!  r�  rD   rš  )rÏ   rC   rD   r2  )TF)rÏ   rC   r9  r2  r:  r2  rD   r›  )Nr   TN)
rH  rŸ  rI  rš  rJ  r2  rK  r•  rD   rš  )rü   rž  rZ  r   rD   rš  )rH  rŸ  rZ  zInstallProgress | Noner!  r�  rD   r2  )r�   rC   rŽ   zCallable[..., None] | strrD   rE   )
r�   rC   rŽ   zCallable[..., Any]r�   rG   r�   rG   rD   rE   )rD   zapt_pkg.ActionGroup)rD   r2  )2r   r   r   r   r   r5   r|   rN   rq   r‘   ru   r™   r…   r8   r>   rÀ   rÄ   r¾   rÐ   r½   rØ   rÝ   rà   r¡   rï   ró   Úpropertyrþ   r  r  r'  r*  r/  r4  r@  rF  r\  rd  rh  rO   rò   ri   rv  rz  rƒ  r†  rŠ  rŽ  r’  r   r   r   r   rI   rI   O   sí  † ñð6 '+Ø"Øð	5à#ð5ð ð5ð ð	5ð
 
õ5ôn$ô!ô/ô2.ö/ô0/ô@;ôôôö ôIô9ô#ôôô ô&ôö	!ð ó$ó ð$ð ó'ó ð'ð óó ðð!Ø&ð!Ø?Jð!à	ô!ðN .2ð	Aà ðAð #ðAð  +ð	Að
 
õAð( ,0Ø*.Ø-1ð	 à(ð ð (ð ð  +ð	 ð
 
õ ôDCð  $Ø#(ð	"àð"ð ð"ð !ð	"ð
 
õ"ðL 26ØØ#Ø#'ð1Ià.ð1Ið ð1Ið ð	1Ið
 !ð1Ið 
õ1Iðf!Ø(ð!Ø<Kð!à	ô!ðJ 26Ø37Ø-1ð	8*à.ð8*ð 1ð8*ð  +ð	8*ð
 
õ8*ôtô1ô0ô
/ð$>Øð>Ø#5ð>Ø>Dð>ØNTð>à	ô>ô,3ð* óó ðð ó+ó ð+ð ó(ó ð(ð ó)ó ð)ð ó)ó ó)r   rI   c                  ó^   • \ rS rSrSrSS jrSS jrSS jrSS jrSS jr	SS jr
SS	 jrS
rg)ÚProblemResolveri  zmResolve problems due to dependencies and conflicts.

The first argument 'cache' is an instance of apt.Cache.
c                óZ   • [         R                  " UR                  5      U l        Xl        g r=   )r.   r¢  r[   Ú	_resolverrY   ©r4   Úcaches     r   r5   ÚProblemResolver.__init__  s   € Ü ×0Ò0°·±ÓAˆŒØ�r   c                óN   • U R                   R                  UR                  5        g)z'Reset the package to the default state.N)r¤  rh  r£   ©r4   r¦   s     r   rh  ÚProblemResolver.clear  s   € à�‰×Ñ˜WŸ\™\Õ*r   c                óN   • U R                   R                  UR                  5        g)z)Protect a package so it won't be removed.N)r¤  Úprotectr£   r©  s     r   r¬  ÚProblemResolver.protect  s   € à�‰×Ñ˜wŸ|™|Õ,r   c                óN   • U R                   R                  UR                  5        g)zMark a package for removal.N)r¤  r­   r£   r©  s     r   r­   ÚProblemResolver.remove"  s   € à�‰×Ñ˜gŸl™lÕ+r   c                ó    • U R                   R                  5         U R                  R                  5         U R                   R	                  5         g)z:Resolve dependencies, try to remove packages where needed.N)rY   rò   r¤  ÚresolverO   r}   s    r   r±  ÚProblemResolver.resolve&  s2   € à�‰×$Ñ$Ô&Ø�‰×ÑÔ Ø�‰×%Ñ%Õ'r   c                ó    • U R                   R                  5         U R                  R                  5         U R                   R	                  5         g)z4Resolve dependencies, do not try to remove packages.N)rY   rò   r¤  Úresolve_by_keeprO   r}   s    r   r´  ÚProblemResolver.resolve_by_keep,  s2   € à�‰×$Ñ$Ô&Ø�‰×&Ñ&Ô(Ø�‰×%Ñ%Õ'r   c                ó    • U R                   R                  5         U R                  R                  5         U R                   R	                  5         g)zKeep back phased updates.N)rY   rò   r¤  Úkeep_phased_updatesrO   r}   s    r   r·  Ú#ProblemResolver.keep_phased_updates2  s2   € à�‰×$Ñ$Ô&Ø�‰×*Ñ*Ô,Ø�‰×%Ñ%Õ'r   )rY   r¤  N©r¦  rI   rD   rE   )r¦   r	   rD   rE   rF   )r   r   r   r   r   r5   rh  r¬  r­   r±  r´  r·  r   r   r   r   r¢  r¢    s*   † ñô
ô+ô-ô,ô(ô(÷(r   r¢  c                  ó"   • \ rS rSrSrSS jrSrg)ÚFilteri<  zFilter base classc                ó   • g)zYFilter function, return True if the package matchs a
filter criteria and False otherwise
Tr   ©r4   r¯   s     r   ÚapplyÚFilter.apply?  s   € ð r   r   N©r¯   r	   rD   r2  ©r   r   r   r   r   r¾  r   r   r   r   r»  r»  <  s
   † Ù÷r   r»  c                  ó"   • \ rS rSrSrSS jrSrg)ÚMarkedChangesFilteriF  z&Filter that returns all marked changesc                ól   • UR                   (       d"  UR                  (       d  UR                  (       a  gg)NTF)Úmarked_installÚmarked_deleteÚmarked_upgrader½  s     r   r¾  ÚMarkedChangesFilter.applyI  s!   € Ø×× ×!2×!2°c×6H×6HØàr   r   NrÀ  rÁ  r   r   r   rÃ  rÃ  F  s
   † Ù0÷r   rÃ  c                  ó"   • \ rS rSrSrSS jrSrg)ÚInstalledFilteriP  zEFilter that returns all installed packages.

.. versionadded:: 1.0.0
c                ó   • UR                   $ r=   )Úis_installedr½  s     r   r¾  ÚInstalledFilter.applyV  s   € Ø×ÑÐr   r   NrÀ  rÁ  r   r   r   rÊ  rÊ  P  s   † ñ÷
 r   rÊ  c                  ó@   • \ rS rSrSrS	S jrS	S jrS
S jrS	S jrSr	g)Ú_FilteredCacheHelperiZ  z:Helper class for FilteredCache to break a reference cycle.c                ó�   • 0 U l         / U l        UR                  SU R                  5        UR                  SU R                  5        g )NrO   rM   )Ú	_filteredÚ_filtersrv  Úfilter_cache_post_changer¥  s     r   r5   Ú_FilteredCacheHelper.__init__]  s<   € ð +-ˆŒØ&(ˆŒØ�‰Ð*¨D×,IÑ,IÔJØ�‰Ð(¨$×*GÑ*GÕHr   c                ó®   • 0 U l         U HH  nU R                   H5  nUR                  U5      (       d  M  SU R                   UR                  '     MF     MJ     g)zinternal helper to refilterTN)rÑ  rÒ  r¾  r�   )r4   r¦  r¯   r‰   s       r   Ú_reapply_filterÚ$_FilteredCacheHelper._reapply_filtere  sE   € ð ˆŒÛˆCØ—]”]�Ø—7‘7˜3—<“<Ø/3�D—N‘N 3§8¡8Ñ,Úó #ò r   c                óH   • / U l         U R                   R                  U5        g©zSet the current active filter.N)rÒ  rí   ©r4   Úfilters     r   Ú
set_filterÚ_FilteredCacheHelper.set_filtero  s   € àˆŒØ�‰×Ñ˜VÕ$r   c                ó&   • U R                  U5        g©z;Called internally if the cache changes, emit a signal then.N)rÖ  r¥  s     r   rÓ  Ú-_FilteredCacheHelper.filter_cache_post_changet  s   € ð 	×Ñ˜UÕ#r   )rÑ  rÒ  Nr¹  ©rÛ  r»  rD   rE   )
r   r   r   r   r   r5   rÖ  rÜ  rÓ  r   r   r   r   rÏ  rÏ  Z  s   † ÙDôIôô%÷
$r   rÏ  c                  óŒ   • \ rS rSrSr S     SS jjrSS jrSS jrSS jrSS jr	SS	 jr
SS
 jrSS jrSS jrSS jrSrg)ÚFilteredCacheiz  zTA package cache that is filtered.

Can work on a existing cache or create a new one
Nc                ól   • Uc  [        U5      U l        OXl        [        U R                  5      U l        g r=   )rI   r¦  rÏ  Ú_helper)r4   r¦  rv   s      r   r5   ÚFilteredCache.__init__€  s)   € ð ‰=Ü˜x›ˆD�JàŒJÜ+¨D¯J©JÓ7ˆ�r   c                ó@   • [        U R                  R                  5      $ r=   )rš   rå  rÑ  r}   s    r   rà   ÚFilteredCache.__len__‰  s   € Ü�4—<‘<×)Ñ)Ó*Ð*r   c                ó    • U R                   U   $ r=   ©r¦  r×   s     r   rÀ   ÚFilteredCache.__getitem__Œ  s   € Ø�z‰z˜#‰Ðr   c              #  óh   #   • U R                   R                   H  nU R                  U   v •  M     g 7fr=   )rå  rÑ  r¦  )r4   rÏ   s     r   rÐ   ÚFilteredCache.__iter__�  s(   é € Ø—|‘|×-Ô-ˆGØ—*‘*˜WÑ%Ô%ò .ùs   ‚02c                óJ   • U R                   R                  R                  5       $ r=   )rå  rÑ  r¡   r}   s    r   r¡   ÚFilteredCache.keys“  s   € Ø�|‰|×%Ñ%×*Ñ*Ó,Ð,r   c                ó
   • X;   $ r=   r   r×   s     r   rØ   ÚFilteredCache.has_key–  rÚ   r   c                ó„   •  U R                   U   R                  U R                  R                  ;   $ ! [         a     gf = frÜ   )r¦  r�   rå  rÑ  r¢   r×   s     r   rÝ   ÚFilteredCache.__contains__™  s<   € ð	à—:‘:˜c‘?×'Ñ'¨4¯<©<×+AÑ+AÑAÐAøÜó 	Ùð	ús   ‚/2 ²
?¾?c                ón   • U R                   R                  U5        U R                  R                  5         grÙ  )rå  rÜ  r¦  rO   rÚ  s     r   rÜ  ÚFilteredCache.set_filter   s$   € à�‰×Ñ Ô'Ø�
‰
×$Ñ$Õ&r   c                óN   • U R                   R                  U R                  5        grß  )rå  rÓ  r¦  r}   s    r   rÓ  Ú&FilteredCache.filter_cache_post_change¥  s   € à�‰×-Ñ-¨d¯j©jÕ9r   c                ó.   • [        U R                  U5      $ )z)we try to look exactly like a real cache.)Úgetattrr¦  r×   s     r   Ú__getattr__ÚFilteredCache.__getattr__©  s   € ä�t—z‘z 3Ó'Ð'r   )rå  r¦  )NN)r¦  zCache | Nonerv   r”  rD   rE   r™  )r®   rC   rD   r	   r—  )rD   zKeysView[str]r˜  rá  rF   )r®   rC   rD   r   )r   r   r   r   r   r5   rà   rÀ   rÐ   r¡   rØ   rÝ   rÜ  rÓ  rú  r   r   r   r   rã  rã  z  sX   † ñð IMð8Ø!ð8Ø4Eð8à	õ8ô+ôô&ô-ôôô'ô
:÷(r   rã  c                ó   • [        S5        g )Nzcache pre changed©Úprintrê  s    r   Úcache_pre_changedrÿ  ®  s   € Ü	Ð
Õr   c                ó   • [        S5        g )Nzcache post changedrý  rê  s    r   Úcache_post_changedr  ²  s   € Ü	Ð
Õr   c                 óÊ  • [        S5        [        R                  " 5         [        [        R
                  R                  R                  5       5      n U R                  S[        5        U R                  S[        5        [        SU ;   5        U S   n[        UR                  5        [        [        U 5      5        U R                  5        H  nX   R                  U:X  a  M   e   U R                  5         U R                  5       n[        [        U5      5        U H  nUR                  (       a  M   e   S H?  n[         R"                  R%                  U5      (       a  M)  [         R&                  " U5        MA     [        R(                  R+                  SS5        [        R,                  " U R.                  5      n[        R0                  " [        R
                  R                  R3                  5       5      nU R5                  XeS5        [        S	5        [7        U 5      nUR8                  R                  S[        5        UR8                  R                  S[        5        UR8                  R                  5         UR;                  [=        5       5        [        [        U5      5        UR                  5        H  nX'U   R                  :X  a  M   e   [        [        U5      5        [        S
5        [7        [        R
                  R>                  R                  5       S9nUR8                  R                  S[        5        UR8                  R                  S[        5        UR8                  R                  5         UR;                  [=        5       5        [        [        U5      5        UR                  5        H  nX'U   R                  :X  a  M   e   [        [        U5      5        g)zInternal test code.zCache self testrò   rO   Úaptitude)ú/tmp/pytestz/tmp/pytest/partialrX   r  Nz.Testing filtered cache (argument is old cache)z$Testing filtered cache (no argument))rv   ) rþ  r.   rg  rI   r•   rv   r.  r   rv  rÿ  r  r�   rš   r¡   ró   rï   r0   r1   rm   Úmkdirrj   rk   rø   r[   rù   r   r*  rã  r¦  rÜ  rÃ  r–   )r¦  r¯   rÏ   rî   r~  rü   rý   Úfiltereds           r   Ú_testr  ¶  sÁ  € ä	Ð
ÔÜ‡L‚L„NÜ”#—,‘,×#Ñ#×.Ñ.Ó0Ó1€EØ	‡N�NÐ%Ô'8Ô9Ø	‡N�NÐ&Ô(:Ô;Ü	ˆ*˜Ñ
ÔØ
�
Ñ
€CÜ	ˆ#�(‰(„OÜ	Œ#ˆe‹*Ôà—:‘:–<ˆØ‰~×"Ñ" gÕ-Ð-Ð-ñ  ð 
‡M�M„OØ×ÑÓ!€GÜ	Œ#ˆg‹,ÔÛˆØ�x�x‰xˆˆxñ ó :ˆÜ�w‰w�~‰~˜g×&Ó&Ü�HŠH�WÖñ :ô ‡N�N×ÑÐ-¨}Ô=Ü	×	Ò	 §¡Ó	0€BÜ�oŠoœcŸl™l×/Ñ/×?Ñ?ÓAÓB€GØ	×Ñ˜' tÔ,ô 
Ð
:Ô;Ü˜UÓ#€HØ‡N�N×ÑÐ.Ô0AÔBØ‡N�N×ÑÐ/Ô1CÔDØ‡N�N×ÑÔØ×ÑÔ+Ó-Ô.Ü	Œ#ˆh‹-ÔØ—=‘=–?ˆØ 7Ñ+×0Ñ0Õ0Ð0Ð0ñ #ô 
Œ#ˆh‹-Ôä	Ð
0Ô1Ü¤c§l¡l×&7Ñ&7×&BÑ&BÓ&DÑE€HØ‡N�N×ÑÐ.Ô0AÔBØ‡N�N×ÑÐ/Ô1CÔDØ‡N�N×ÑÔØ×ÑÔ+Ó-Ô.Ü	Œ#ˆh‹-ÔØ—=‘=–?ˆØ 7Ñ+×0Ñ0Õ0Ð0Ð0ñ #ô 
Œ#ˆh‹-Õr   Ú__main__r¹  rF   )*Ú
__future__r   r�  r0   rq  rb   Úcollections.abcr   r   r   Útypingr   r   r.   Úapt.progress.textr•   Úapt.packager	   r
   Úapt.progress.baser   r   r   ÚIOErrorr   r   r   r#   Ú	Exceptionr&   r)   rI   r¢  r»  rÃ  rÊ  rÏ  rã  rÿ  r  r  r   r   r   r   Ú<module>r     sï   ðõ, #ã Û 	Û Û ß 8Ñ 8ß ã ã ß (ß JÑ JôL˜gô Lô8˜7ô 8ôIÐ-ô Iô7˜'ô 7ôI˜9ô I÷:ñ :÷*~
)ñ ~
)÷B&(ñ &(÷Xñ ô˜&ô ô �fô  ÷$ñ $÷@1(ñ 1(ôhô ô5ðp ˆzÓÙ	…Gð r   