1. NAME▲
org.debian.apt.transaction - the main interface of an aptdaemon transaction
2. SYNOPSIS ▲
Each transaction is represented as an unique D-Bus object, e.g. at the D-Bus path /or/debian/apt/transaction/12123-123-123213 . Which provides the following interface.
3. DESCRIPTION ▲
3.1. METHODS ▲
ProvideMedium
ProvideMedium\t(in 's' medium )
Continue a paused transaction which is waiting for the given medium .
If a media change is required to e.g. install packages from a CD/DVD the transaction will be paused and the RequiredMedium property changed to an array of the "medium label" " and its " "mount point" . Furthermore the MediumRequired signal will be emitted.
ResolveConfigFileConflict
ResolveConfigFilePrompt\t(in 's' config ,
\t\t\t\tin 's' answer )
Continue a paused transaction which is waiting for an answer to handle a configuration file conflict. Configis the path to the current configuration file and answercan be either "replace" or "keep".
If a later config file is shipped in a package which overrides some user modifications the transaction will be paused and the ConfigFileConflict property of the transaction will be set to an array of the old and new configuration file path. The later one is supposed to replace the former one. Furthermore the ConfigFileConflict signal will be emitted.
Simulate
Simulate\t()
Simulate the transaction and calculate dependencies, required disk space and download size. If a transaction would fail the corresponding error will be raised.
Run
Run\t()
Queue the transaction for processing. Afterwards there cannot be made any further changes to the transaction, e.g. modifing the http proxy.
Cancel
Cancel\t()
Cancel the transaction if possible.
3.2. SIGNALS ▲
Finished
Finished\t('s' exit_state )
The signal will be emitted when the transaction has been processed. The exit_stateindicates if the transaction was completed, cancelled or failed.
MediumRequired
MediumRequired\t('s' label ,
\t\t\t's' mount_point )
The signal will be emitted if the transaction has been paused and waits for a media change to install packages.
ConfigFileConflict
ConfigFileConflict\t('s' old ,
\t\t\t's' new )
The signal will be emitted if the transaction has been paused because a newconfiguration file is shipped in a package which would override changes by the user in the oldconfiguration file.
PropertyChanged
PropertyChanged\t('s' property_name ,
\t\t\t'v' value )
The signal will be emitted if one of the following properties has changed.
3.3. PROPERTIES ▲
The properties of the transaction are available through the Get And GetAll methods of the D-Bus properties interface and can be changed using the Set method.
R Role
The role enum of the transaction, e.g. update-cache.
R Status
The current status enum of the transaction, e.g. downloading
R StatusDetails
A clear text message describing the current status.
R Progress
The progress of the transaction in percent.
R ProgressDownload
The last download progress information recieved from APT. It is an array of the URI, status enum, short description, full size, already downloaded size and an error or status message.
R Space
The additional disk space in Bytes which will be required by the transaction. The
Simulate method has to be called to calculate the download size.
R Download
The required download size in Bytes of the transaction. The
Simulate method has to be called to calculate the download size.
R Packages
The lists of packages which are initially queued to be installed, reinstalled, removed, purged, upgraded, downgraded or skipped from upgrading.
R Dependenciens
The lists of packages which are additionally required to be installed, reinstalled, removed, purged, upgraded, downgraded or skipped from upgrading. The
Simulate method has to be called to calculate the dependencies.
R Cancellable
If the transaction can be cancelled.
R TerminalAttached
If the master pty which has to be set using the Terminal property is attached as controlling terminal to the underlying dpkg call.
R RequiredMedium
The transaction will be stopped if a media change is required to install packages. This property provides the labeland the mount pointof the requested medium.
R ConfigFileConflict
The transaction will be stopped if a configuration file shipped in the package overrides changes of the user. This property provides the path to currentand the path to the newconfiguration file.
R ExitState
The exit state enum of the transaction.
R Error
If an error occured this property provides the error enumand the error message.
R Locale
This is the locale which will be used for translating status and error messages of apt, e.g. .
R Terminal
The path to the master pty which will be the controlling terminal of the underlying dpkg call. This allows to have an interactive terminal session.
R DebconfSocket
The path to the socket which will be used by the debconf passthrough backend to forward the debconf communication to the user session.
R Paused
If the transaction is paused, e.g. waiting for a conflict file resolution or media change.
R RemoveObsoletedDepends
If obsoleted dependencies of to be removed packages which have been installed automatically should be removed too.
R AllowUnauthenticated
If it is allowed to install not authenticated software packages.
R HttpProxy
The URL of an http proxy which should be used to download repository meta data and package files, e.g. http://myproxy.athome:8080
R MetaData A dictonary which allows client application to store additional data in the transaction. The key name has to include an identifier of the client application separated by an unterscore from the key name, e.g. sc_icon for the application icon name stored by software-center. The property cannot be changed anymore after the transaction has been queued.
4. HOMEPAGE ▲
5. BUGS ▲
You can report bugs at the Launchpad site of aptdaemon: https://bugs.launchpad.net/aptdaemon/+filebug
6. AUTHOR ▲
Sebastian Heinlein <devel at glatzor dot de>
7. SEE ALSO ▲
R org.debian.apt.transaction (7),
R aptd (2),
R aptdcon (2)