aboutsummaryrefslogtreecommitdiff
path: root/doc/org.debian.apt.transaction.7
blob: b2b56f6b9c32157032f3409764219b0e7ece1a92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
.\" groff -man -Tascii foo.1
.TH org.debian.apt.transaction 7 "December 2009" "aptdaemon" "D-Bus Interface"
.SH NAME
org.debian.apt.transaction \- the main interface of an aptdaemon transaction
.SH SYNOPSIS
Each transaction is represented as an unique D-Bus object, e.g. at the D-Bus path
.IR /or/debian/apt/transaction/12123-123-123213 .
Which provides the following interface.
.SH DESCRIPTION
.SS METHODS
.TP
.B ProvideMedium
.BI "ProvideMedium\t(in 's' " medium )
.RS
.PP
Continue a paused transaction which is waiting for the given
.IR medium .
.PP
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 
.IR "medium label" " and its " "mount point" .
Furthermore the MediumRequired signal will be emitted.
.RE
.TP
.B ResolveConfigFileConflict
.BI "ResolveConfigFilePrompt\t(in 's' " config ,
.br 
.BI "\t\t\t\tin 's' " answer )
.RS
.PP
Continue a paused transaction which is waiting for an answer to handle
a configuration file conflict.
.I Config
is the path to the current configuration file and 
.I answer
can be either "replace" or "keep".
.PP
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.
.RE
.TP
.B Simulate
.BI "Simulate\t()" 
.RS
.PP
Simulate the transaction and calculate dependencies, required disk space and
download size. If a transaction would fail the corresponding error will be
raised.
.RE
.TP
.B Run
.BI "Run\t()" 
.RS
.PP
Queue the transaction for processing. Afterwards there cannot be made any further changes to the transaction, e.g. modifing the http proxy.
.RE
.TP
.B Cancel
.BI "Cancel\t()" 
.RS
.PP
Cancel the transaction if possible.
.RE
.SS SIGNALS
.TP
.B Finished
.BI "Finished\t('s' " exit_state )
.RS
.PP
The signal will be emitted when the transaction has been processed. The 
.I exit_state
indicates if the transaction was completed, cancelled or failed.
.RE
.TP
.B MediumRequired
.BI "MediumRequired\t('s' " label ,
.br
.BI "\t\t\t's' " mount_point )
.RS
.PP
The signal will be emitted if the transaction has been paused and waits for a media change to install packages.
.RE
.TP
.B ConfigFileConflict
.BI "ConfigFileConflict\t('s' " old ,
.br
.BI "\t\t\t's' " new )
.RS
.PP
The signal will be emitted if the transaction has been paused because a 
.I new
configuration file is shipped in a package which would override changes by the
user in the
.I old
configuration file.
.RE
.TP
.B PropertyChanged
.BI PropertyChanged\t('s' " property_name ,
.br
.BI "\t\t\t'v' " value  )
.RS
.PP
The signal will be emitted if one of the following properties has changed.
.RE
.SS 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.
.TP
.BR Role " read 's'"
The role enum of the transaction, e.g. update-cache.
.TP
.BR Status " read 's'"
The current status enum of the transaction, e.g. downloading
.TP
.BR StatusDetails " read 's'"
A clear text message describing the current status.
.TP
.BR Progress " read 'i'"
The progress of the transaction in percent.
.TP
.BR ProgressDownload " read 'sssiis'"
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.
.TP
.BR Space " read 'i'"
The additional disk space in Bytes which will be required by the transaction.
The 
.B Simulate
method has to be called to calculate the download size.
.TP
.BR Download " read 'i'"
The required download size in Bytes of the transaction.
The 
.B Simulate
method has to be called to calculate the download size.
.TP
.BR Packages " read 'a(a(s)a(s)a(s)a(s)a(s)a(s)a(s))'"
The lists of packages which are initially queued to be installed,
reinstalled, removed, purged, upgraded, downgraded or skipped from upgrading.
.TP
.BR Dependenciens " read 'a(a(s)a(s)a(s)a(s)a(s)a(s)a(s))'"
The lists of packages which are additionally required to be installed,
reinstalled, removed, purged, upgraded, downgraded or skipped from upgrading.
The 
.B Simulate
method has to be called to calculate the dependencies.
.TP
.BR Cancellable " read 'b'"
If the transaction can be cancelled.
.TP
.BR TerminalAttached " read 'b'"
If the master pty which has to be set using the Terminal property is attached as controlling terminal to the underlying dpkg call.
.TP
.BR RequiredMedium " read 'a(ss)'"
The transaction will be stopped if a media change is required to install packages. This property provides the 
.I label
and the 
.I mount point
of the requested medium.
.TP
.BR ConfigFileConflict " read 'a(ss)'"
The transaction will be stopped if a configuration file shipped in the package overrides changes of the user. This property provides the path to 
.I current
and the path to the
.I new
configuration file.
.TP
.BR ExitState " read 's'"
The exit state enum of the transaction.
.TP 
.BR Error " read 'a(ss)'"
If an error occured this property provides the
.I error enum
and the 
.I error message.
.TP
.BR Locale " read-write 's'"
This is the locale which will be used for translating status and error messages of apt, e.g. de_DE@utf-8.
.TP
.BR Terminal " read-write 's'"
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.
.TP
.BR DebconfSocket " read-write 's'"
The path to the socket which will be used by the debconf passthrough backend to forward the debconf communication to the user session.
.TP
.BR Paused " read 'b'"
If the transaction is paused, e.g. waiting for a conflict file resolution or media change.
.TP
.BR Unauthenticated " read 'as'"
List of unauthenticated packages which are going to be installed.
.TP
.BR RemoveObsoletedDepends " read-write 'b'"
If obsoleted dependencies of to be removed packages which have been installed
automatically should be removed too.
.TP
.BR AllowUnauthenticated " read-write 'b'"
If it is allowed to install not authenticated software packages.
.TP
.BR HttpProxy " read-write 's'"
The URL of an http proxy which should be used to download repository meta data and package files, e.g. http://myproxy.athome:8080. You should set the system wide proxy if you use this feature regularly.
.BR MetaData " read-write 'a{ss}'"
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.
.SH HOMEPAGE
https://launchpad.net/aptdaemon
.SH BUGS
You can report bugs at the Launchpad site of aptdaemon:
https://bugs.launchpad.net/aptdaemon/+filebug
.SH AUTHOR
Sebastian Heinlein <devel at glatzor dot de>
.SH SEE ALSO
.BR org.debian.apt.transaction (7),
.BR aptd (2),
.BR aptdcon (2)