This commit is contained in:
guinux 2017-03-01 15:56:33 +01:00
parent c024bc53f8
commit 1bf733d7ac

View File

@ -1814,7 +1814,7 @@ namespace Pamac {
unowned Alpm.List<unowned Alpm.Package> packages = grp.packages; unowned Alpm.List<unowned Alpm.Package> packages = grp.packages;
while (packages != null) { while (packages != null) {
unowned Alpm.Package pkg = packages.data; unowned Alpm.Package pkg = packages.data;
if (alpm_handle.localdb.get_pkg (pkg.name) == null) { if (Alpm.find_satisfier (alpm_handle.localdb.pkgcache, pkg.name) == null) {
to_install += pkg.name; to_install += pkg.name;
} else { } else {
// remove the needed pkg from to_remove // remove the needed pkg from to_remove
@ -1826,7 +1826,7 @@ namespace Pamac {
syncdbs.next (); syncdbs.next ();
} }
// check git needed to build pkgs // check git needed to build pkgs
if (alpm_handle.localdb.get_pkg ("git") == null) { if (Alpm.find_satisfier (alpm_handle.localdb.pkgcache, "git") == null) {
to_install += "git"; to_install += "git";
} else { } else {
// remove the needed pkg from to_remove // remove the needed pkg from to_remove