fix installing optdep

This commit is contained in:
guinux
2016-04-15 12:09:07 +02:00
parent b59e68459b
commit 547c0394c3
2 changed files with 2 additions and 10 deletions

View File

@@ -957,11 +957,9 @@ namespace Pamac {
choose_dep_dialog.deps_list.foreach ((model, path, iter) => {
bool selected;
string name;
// get value at column 0 to know if it is selected
choose_dep_dialog.deps_list.get (iter, 0, out selected, 1, out name);
if (selected) {
// get value at column 1 to get the pkgname
AlpmPackage sync_pkg = transaction.get_sync_pkg (name);
AlpmPackage sync_pkg = transaction.find_sync_satisfier (name);
if (sync_pkg.name != "") {
transaction.to_install.add (sync_pkg.name);
}