Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Chakra
Akabei
Akabei frontend
Commits
f87ada19
Commit
f87ada19
authored
Jan 05, 2016
by
AlmAck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new replace operation. Write to the user output the list of packages to be replaced.
parent
33b195ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
queueoperation.cpp
queueoperation.cpp
+10
-0
No files found.
queueoperation.cpp
View file @
f87ada19
...
...
@@ -306,6 +306,16 @@ void QueueOperation::validationFinished(bool valid)
}
out
<<
endl
;
}
if
(
!
m_transaction
->
toBeReplaced
().
isEmpty
())
{
out
<<
QObject
::
tr
(
"The following packages are going to be replaced: "
);
foreach
(
Akabei
::
Package
*
old
,
m_transaction
->
toBeReplaced
().
keys
())
{
if
(
old
!=
*
(
m_transaction
->
toBeReplaced
().
keys
().
begin
()))
out
<<
QObject
::
tr
(
", "
);
Akabei
::
Package
*
newer
=
m_transaction
->
toBeReplaced
().
value
(
old
);
out
<<
old
->
name
()
<<
" ("
<<
old
->
version
().
toByteArray
()
<<
" -> "
<<
newer
->
version
().
toByteArray
()
<<
")"
;
}
out
<<
endl
;
}
out
<<
endl
;
if
(
downloadSize
>
0
)
{
out
<<
QObject
::
tr
(
"Download size: %1"
).
arg
(
Akabei
::
Helpers
::
formatByteSize
(
downloadSize
))
<<
endl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment