Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Chakra
Akabei
Akabei frontend
Commits
03842521
Commit
03842521
authored
Jan 19, 2016
by
AlmAck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the summary list of replaced packages. To be improved.
parent
8cb92de6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
queueoperation.cpp
queueoperation.cpp
+7
-4
No files found.
queueoperation.cpp
View file @
03842521
...
...
@@ -308,11 +308,14 @@ void QueueOperation::validationFinished(bool valid)
}
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
()))
foreach
(
Akabei
::
Package
*
pkg
,
m_transaction
->
toBeReplaced
().
keys
())
{
QList
<
Akabei
::
Package
*>
older
=
m_transaction
->
toBeReplaced
().
value
(
pkg
);
out
<<
pkg
->
name
()
<<
" -> ("
;
foreach
(
Akabei
::
Package
*
replaced
,
older
){
out
<<
replaced
->
name
();
out
<<
QObject
::
tr
(
", "
);
Akabei
::
Package
*
newer
=
m_transaction
->
toBeReplaced
().
value
(
old
);
out
<<
old
->
name
()
<<
" ("
<<
old
->
version
().
toByteArray
()
<<
" -> "
<<
newer
->
version
().
toByteArray
()
<<
")"
;
}
out
<<
")"
;
}
out
<<
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