+
    j5'                     $   ^ RI t ^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RIt^RIH	t	H
t
 ^RIHtHtHtHt ^RIHt ^ RIt^ RIt^RIHt ^RIHt R t ! R	 R
]]P0                  P2                  P                  4      t ! R R]4      t ! R R]4      tR# )    N)dgettext)
run_apportapport_crash)AcquireProgressDistUpgradeViewENCODINGInstallProgress)get)gettext)twrapc                     \         P                  P                  4         \        4       p \        V R4      '       d   V P                  \        R4      # V #   \         d    Rp  L9i ; i)z'py2/py3 compatible readline from stdin  decodebackslashreplace)sysstdoutflushinputEOFErrorhasattrr   r   )ss    A/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeViewText.pyreadliner   /   sZ    JJG q(xx"455H	  s   
A A$#A$c                   ,   a  ] tR t^;t o R tR tRtV tR# )TextAcquireProgressc                    \         P                  P                  P                  P	                  V 4       \        P                  ! V 4       R # N)aptprogresstextr   __init__selfs   &r   r!   TextAcquireProgress.__init__<   s.    ))2248  &    c                    \         P                  P                  P                  P	                  W4       \        P                  ! W4       R # )T)r   r   r    r   pulse)r#   owners   &&r   r'   TextAcquireProgress.pulse?   s1    ))//<d*r%    N)__name__
__module____qualname____firstlineno__r!   r'   __static_attributes____classdictcell__)__classdict__s   @r   r   r   ;   s     ' r%   r   c                   <   a a ] tR t^Et o^tV 3R ltR tRtVtV ;t	# )TextInstallProgressc                >   < \         \        V `
  ! V/ VB  ^ V n        R# )r   N)superr3   r!   _prev_percent)r#   argskwargs	__class__s   &*,r   r!   TextInstallProgress.__init__J   s     !414B6Br%   c                    V P                   V P                  ,           V8  dM   R p\        VR4      \        V4      ,          p\        P
                  P                  RV,          4       W n         R# R# )zlibapt-pkg4.12zProgress: [%3i%%]z
%s
N)r6   MIN_REPORTINGr   intr   r   write)r#   pkgpercentstatusdomainprogress_strs   &&&&  r   status_change!TextInstallProgress.status_changeN   sX     2 22W<%F#F,?@3w<OLJJ\L89!( =r%   )r6   )
r+   r,   r-   r.   r<   r!   rD   r/   r0   __classcell__r9   r1   s   @@r   r3   r3   E   s      M) )r%   r3   c                      a a ] tR t^Wt oRtRR ltR tR tR tR t	R t
R tV 3R	 ltRR
 ltRR ltR tRR ltRR ltRR ltR tRtVtV ;t# )DistUpgradeViewTextz&text frontend of the distUpgrade tool c                   R V n         \        4       P                  R4       R\        P                  9  d   R\        P                  R&   V'       d   VR8X  d5   \        P
                  P                  \        P                  ! 4       R4      pMRp \        P                  ! RV4       \        P                  ! R4       R	V n        \        P                   P"                  P%                  4       V n        \)        4       V n        \-        4       V n        V P0                  \2        n        R	#   \         d(   p\        P                  ! RT,          4        R	p?LR	p?ii ; i)
TTextDEBIAN_FRONTENDdialog.moz)/usr/share/locale/ubuntu-release-upgraderzubuntu-release-upgraderzError setting locales (%s)N)needs_screenget_telemetryset_updater_typeosenvironpathjoingetcwdr   bindtextdomain
textdomain	Exceptionloggingwarning	last_stepr   r   r    
OpProgress_opCacheProgressr   _acquireProgressr3   _installProgress_handleExceptionr   
excepthook)r#   datadirlogdir	localedires   &&&  r   r!   DistUpgradeViewText.__init__Z   s     ((0 BJJ.,4BJJ()'S.GGLLT2)?)	<

 
 !:I
F


6
7  # 1 1 < < > 3 5 3 5..  	<
//6:
;
;	<s   -D% %E0EEc                j   ^ RI p\        4        VP                  WV4      p\        P                  ! RRP                  V4      ,          4       \        WV4       \        4       '       g5   V P	                  \        R4      \        R4      RP                  V4      4       \        P                  ! ^4       R# )r   Nznot handled exception:
%s
zA fatal error occurredzPlease report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted.
Your original sources.list was saved in /etc/apt/sources.list.distUpgrade.)	tracebackprintformat_exceptionr[   errorrV   r   r   _r   exit)r#   typevaluetbrk   liness   &&&&  r   rb   $DistUpgradeViewText._handleExceptiont   s    
 	**4;2TYYu5EEFT"%||JJq12 > ? yy') 	r%   c                    V P                   # r   )r`   r"   s   &r   getAcquireProgress&DistUpgradeViewText.getAcquireProgress       $$$r%   c                :    WP                   n        V P                   # r   )ra   _cache)r#   caches   &&r   getInstallProgress&DistUpgradeViewText.getInstallProgress   s    ',$$$$r%   c                    V P                   # r   )r_   r"   s   &r   getOpCacheProgress&DistUpgradeViewText.getOpCacheProgress   ry   r%   c                l    \        4        \        V4       \        P                  P                  4        R # r   )rl   r   r   r   )r#   msgs   &&r   updateStatus DistUpgradeViewText.updateStatus   s    gCj	jjr%   c                B    \        4        \        \        R 4      4       R# )AbortingN)rl   ro   r"   s   &r   abortDistUpgradeViewText.abort   s    gAjMr%   c                :   < \         \        V `  V4       Wn        R # r   )r5   rI   setStepr]   )r#   stepr9   s   &&r   r   DistUpgradeViewText.setStep   s    .t4nr%   c                    \        4        \        \        V4      4       \        \        V4      4       V'       d   \        \        V4      4       \        \        R 4      4       \        4        R# )z To continue please press [ENTER]N)rl   r   ro   r   r#   summaryr   extended_msgs   &&&&r   informationDistUpgradeViewText.information   sB    gE'NE#J	eL!"A012jr%   c                    \        4        \        \        V4      4       \        \        V4      4       V'       d   \        \        V4      4       R # )F)rl   r   r   s   &&&&r   rn   DistUpgradeViewText.error   s2    gE'NE#J	eL!"r%   c                $   \        V\        4      '       g   VP                  \        4      pR F  p\        P
                  P                  V4      '       g   K*  \        P                  ! VR.\        P                  R7      p VP                  P                  V4       VP                  P                  4        VP                  4         R# 	  \#        V4       R#   \         d-   pTP                  \        P                   8w  d   h  Rp? R# Rp?ii ; i)z!helper to show output in a pager -)stdinN)z/usr/bin/sensible-pagerz	/bin/more)
isinstancebytesencoder   rS   rU   exists
subprocessPopenPIPEr   r>   closewaitIOErrorerrnoEPIPErl   )r#   outputpagerprg   s   &&   r   showInPagerDistUpgradeViewText.showInPager   s     &&==*&;%WW^^E""""E#;Z__Ea''--'''--/&&(  < Fm  WW+ ,s   ACD# D

Dc           
        \         P                  ! WVW44       \        4        \        \        V4      4       \        \        V P                  4      4       \        R \        R4      : R \        R4      : 2RR7        \        4       P                  4       P                  4       pVP                  \        R4      4      '       d   R# V'       d!   VP                  \        R4      4      '       d   R# VP                  \        R	4      4      '       Ed   Rp\        V P                  4      ^ 8  d`   VR
,          pT\        \        R4      R P                  V P                   Uu. uF  qP                  NK  	  up4      ,          RR7      ,          p\        V P                  4      ^ 8  d`   T\        \        R4      R P                  V P                   Uu. uF  qP                  NK  	  up4      ,          RR7      ,          pVR
,          p\        V P                  4      ^ 8  d`   VR
,          pT\        \        R4      R P                  V P                   Uu. uF  qP                  NK  	  up4      ,          RR7      ,          p\        V P                   4      ^ 8  d`   VR
,          pT\        \        R4      R P                  V P                    Uu. uF  qP                  NK  	  up4      ,          RR7      ,          pV P#                  V4       \        \        R4      : R \        R4      : 2RR7       EK  u upi u upi u upi u upi ) Continue [yN] zDetails [d]r   endTynFdrj   zRemove: %s
z  )subsequent_indentzRemove (was auto installed) %szInstall: %s
zUpgrade: %s
)r   confirmChangesrl   r   confirmChangesMessagero   r   striplower
startswithlentoRemoverV   nametoRemoveAuto	toInstall	toUpgrader   )	r#   r   changesdownloadSizeactionsremoval_boldresr   r   s	   &&&&&&   r   r   "DistUpgradeViewText.confirmChanges   so   $$TG%1<gE'NE$,,-.*+Q}-=>BGj &&(>>!C&!!qv..^^AcF##&!#nfN#chh/N1/N&OO$(* *f ""#a'45RVRcRcAdRcQ&&RcAd8ee$(* *f nf 1$nfO$sxx0PA0P'QQ$(* *f  1$nfO$sxx0PA0P'QQ$(* *f 

6
"+,a.>?RHH% 0O Be 1Q
 1Qs   L0L5L:	L?c                   \        4        V'       d   \        \        V4      4       \        \        V4      4       VR 8X  da   \        \        R4      RR7       \        4       pVP	                  4       P                  4       P                  \        R4      4      '       d   R# R# \        \        R4      RR7       \        4       pVP	                  4       P                  4       P                  \        R4      4      '       d   R# R# )	Nor   r   r   r   TFzContinue [Yn] r   )rl   r   ro   r   r   r   r   )r#   r   r   defaultr   s   &&&& r   askYesNoQuestion$DistUpgradeViewText.askYesNoQuestion   s    g	eGnE#J	D
"#
,
#YY[ ++AcF33
"#
,
#YY[ ++AcF33r%   c                D    T P                  YVR 8X  d   RR7      # RR7      # )Cancelr   Yesr   )r   )r#   r   r   r   s   &&&&r   askCancelContinueQuestion-DistUpgradeViewText.askCancelContinueQuestion   s8    ""78+ # 8 816 # 8 8r%   c                N    V P                  \        R 4      \        R4      RR7      # )zRestart requiredz]To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.r   r   )r   ro   r"   s   &r   confirmRestart"DistUpgradeViewText.confirmRestart  s8    ""1%7#8#$ &: $; EI	 # J Jr%   )r`   ra   r_   r]   rP   )NNr   )NT)r   )r   )r+   r,   r-   r.   __doc__r!   rb   rw   r}   r   r   r   r   r   rn   r   r   r   r   r   r/   r0   rF   rG   s   @@r   rI   rI   W   s\     1/4*%%%*(IT(8 J Jr%   rI   )r   r   r[   r   r   r   r   rS   DistUpgradeApportr   r   r   r   r   r	   	telemetryr
   rQ   apt.progressDistUpgradeGettextro   utilsr   r   r   r    r   r3   rI   r*   r%   r   <module>r      sy   ,  
    
 	 7  ,   , 	/3<<+<+<+L+L )/ )$zJ/ zJr%   