Commit e6cbd332 authored by guinux's avatar guinux

fix #711

parent 69796fdd
......@@ -316,18 +316,18 @@ namespace Pamac {
return 1;
}
}
if (pkg_a.installed_version == "") {
if (pkg_b.installed_version == "") {
if (pkg_a.installed_version != "") {
if (pkg_b.installed_version != "") {
return sort_pkgs_by_name (pkg_a, pkg_b);
} else {
return 1;
return -1;
}
}
if (pkg_b.installed_version == "") {
if (pkg_a.installed_version == "") {
if (pkg_b.installed_version != "") {
if (pkg_a.installed_version != "") {
return sort_pkgs_by_name (pkg_a, pkg_b);
} else {
return -1;
return 1;
}
}
if (pkg_a.popularity > pkg_b.popularity) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment