index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2007-10-18 13:26:04 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-18 12:32:10 -0500 |
commit | 0ff02995f169d460d60a9512d7fa8257c74ed8f4 (patch) | |
tree | cdc0b15350af321afba27a9aff9033d796d4f7a9 /lib | |
parent | 619bf56e6613333f319fb1add22fa989060e208d (diff) |
-rw-r--r-- | lib/libalpm/package.c | 7 |
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 38e6e4c2..9e45b1d5 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -527,7 +527,6 @@ alpm_list_t SYMEXPORT *alpm_pkg_compute_requiredby(pmpkg_t *pkg) for(j = alpm_pkg_get_depends(cachepkg); j; j = j->next) { pmdepend_t *dep; - int satisfies; if(!j->data) { continue; @@ -537,14 +536,12 @@ alpm_list_t SYMEXPORT *alpm_pkg_compute_requiredby(pmpkg_t *pkg) continue; } - satisfies = alpm_depcmp(pkg, dep); - FREE(dep); - if(satisfies) { + if(alpm_depcmp(pkg, dep)) { _alpm_log(PM_LOG_DEBUG, "adding '%s' in requiredby field for '%s'\n", cachepkgname, pkg->name); reqs = alpm_list_add(reqs, strdup(cachepkgname)); - break; } + FREE(dep); } } return(reqs); |