%PDF- %PDF-
Direktori : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/DistUpgradeViewNonInteractive.cpython-312.pyc |
� &��e&6 � �( � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZ d dlm Z mZ d dl mZmZ ddlmZmZmZ ddlmZ ddlmZ G d� d e� Z G d � de� Z G d� d e� Zedk( r� e� Z e� Z e� ZejA dd� e jB � Z"ejF dd D ] Z$e"e$ jK � � e"jM ee� ejN d� ejP d � yy)� N)�NoSectionError� NoOptionError)�PIPE�Popen� )�DistUpgradeView�InstallProgress�AcquireProgress)�get)�DistUpgradeConfigc � � e Zd Zd� Zy)�NonInteractiveAcquireProgressc �Z � t j | ||||� |t j k( rt d|| j t j t | j � � fz � t j j � rt j j � y y y )Nzfetched %s (%.2f/100) at %sb/s) r � update_status�apt_pkg� STAT_DONE�print�percent�size_to_str�int�current_cps�sys�stdout�isatty�flush)�self�uri�descr� shortDescr�statuss �K/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeViewNonInteractive.pyr z+NonInteractiveAcquireProgress.update_status, s� � ��%�%�d�C�� �F�K��W�&�&�&��2��T�\�\�7�#6�#6�s�4�;K�;K�7L�#M�6O� O� P��z�z� � �"�� � � � �"� #� '� N)�__name__� __module__�__qualname__r � r"