Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
ff875ff8
Commit
ff875ff8
authored
Dec 01, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
pk: properly split version strings
parent
51eae4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
View file @
ff875ff8
...
...
@@ -41,7 +41,6 @@ int percentageWithStatus(PackageKit::Transaction::Status status, uint percentage
return
percentage
;
}
static
void
kRemoveDuplicates
(
QJsonArray
&
input
,
std
::
function
<
QString
(
const
QJsonValueRef
&
)
>
fetchKey
)
{
QSet
<
QString
>
ret
;
...
...
@@ -113,7 +112,7 @@ public:
QString
changes
;
for
(
auto
res
:
qAsConst
(
m_resources
))
{
const
auto
versions
=
res
->
upgradeText
();
const
auto
idx
=
versions
.
indexOf
(
u
'\
u
fffd
'
);
const
auto
idx
=
versions
.
indexOf
(
u
'\
u
009C
'
);
changes
+=
QStringLiteral
(
"<li>"
)
+
res
->
packageName
()
+
QStringLiteral
(
": "
)
+
versions
.
leftRef
(
idx
)
+
QStringLiteral
(
"</li>
\n
"
);
}
Q_EMIT
changelogFetched
(
QStringLiteral
(
"<ul>"
)
+
changes
+
QStringLiteral
(
"</ul>
\n
"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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