Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
fix: query version lost
Browse files Browse the repository at this point in the history
Change-Id: I2262c65d0bb8df19d258f6cbdb045ef03422dc8a
  • Loading branch information
myml committed Nov 9, 2018
1 parent ee9d419 commit cef6822
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/services/store_daemon_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,16 +487,14 @@ QVariantMap StoreDaemonManager::queryVersions(const QStringList& apps) {
}
}

if (deb_names_.contains(version.pkg_name)) {
const QStringList& app_names = deb_names_.values(version.pkg_name);
for (const QString& app_name : app_names) {
version_vars.append(QVariantMap {
{ "name", app_name },
{ "localVersion", version.installed_version },
{ "remoteVersion", version.remote_version },
{ "upgradable", version.upgradable },
});
}
const QStringList& app_names = deb_names_.values(version.pkg_name);
for (const QString& app_name : app_names) {
version_vars.append(QVariantMap {
{ "name", app_name },
{ "localVersion", version.installed_version },
{ "remoteVersion", version.remote_version },
{ "upgradable", version.upgradable },
});
}
}

Expand Down

0 comments on commit cef6822

Please sign in to comment.