Using wrong variable for depend lookup in sortbydeps

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Nagy Gabor 2007-04-22 22:01:47 -05:00 committed by Aaron Griffin
parent c523d78358
commit 8e694dc40f
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, pmtranstype_t mode)
for(l = alpm_pkg_get_provides(q); l; l = l->next) {
const char *provname = l->data;
if(!strcmp(depend->name, provname)) {
if(!_alpm_pkg_find(provname, tmptargs)) {
if(!_alpm_pkg_find(qname, tmptargs)) {
change = 1;
tmptargs = alpm_list_add(tmptargs, q);
}