/usr/lib/python3/dist-packages/landscape/lib/apt/package/__pycache__
Edit: /usr/lib/python3/dist-packages/landscape/lib/apt/package/__pycache__/facade.cpython-310.pyc (31090B)
o
c* @ s8 d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
d dlZd dlZd dl
Z
d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZmZ d d
lmZmZmZ ddlmZ G d
d de Z!G dd de Z"G dd de Z#G dd deZ$G dd deZ%G dd de&Z'dS ) )absolute_importN)
attrgetterSourcesList)AcquireProgress)InstallProgress)
itervalues)StringIO)append_text_filecreate_text_file)read_text_fileread_binary_file
touch_file build_skeleton_aptc @ e Zd ZdZdS )TransactionErrorz)Raised when the transaction fails to run.N__name__
__module____qualname____doc__ r r B/usr/lib/python3/dist-packages/landscape/lib/apt/package/facade.pyr r c @ s e Zd ZdZdd Zdd ZdS )DependencyErrorz9Raised when a needed dependency wasn't explicitly marked.c C s
|| _ d S N)packages)selfr r r r __init__$ s
zDependencyError.__init__c C s dd dd | jD S )NzMissing dependencies: %s, c S s g | ]}t |qS r )str).0packager r r
) z+DependencyError.__str__..)joinr r r r r __str__' s zDependencyError.__str__N)r r r r r r) r r r r r ! s r c @ r )ChannelErrorz"Raised when channels fail to load.Nr r r r r r* , r r* c @ s e Zd Zdd Zdd ZdS )LandscapeAcquireProgressc G dS )aD Override trying to get the column count of the buffer.
We always send the output to a file, not to a terminal, so the
default width (80 columns) is fine for us.
Overriding this method means that we don't have to care about
fcntl.ioctl API differences for different Python versions.
Nr )r dummyr r r _winch2 s zLandscapeAcquireProgress._winchc C r, )zOverride updating the acquire progress, which needs a tty.
Under Python3, StringIO.fileno() raises UnsupportedOperation instead
of an AttributeError. This would be uncaught by apt, thus we force a
NOOP here.
Tr )r ownerr r r pulse<