1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

Fix requiredby output

This is a bit embarrassing. For example:
$ pacman -Qi mesa
...
Required By    : mesa  mesa  mesa  mesa  mesa  mesa

Something is clearly not right, and the problem was introduced in commit
0bc961. Fix the issue by getting the package name off the correct variable.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2009-12-07 22:48:59 -06:00
parent 03f35b1432
commit 926dfe5827

View File

@ -573,7 +573,7 @@ alpm_list_t SYMEXPORT *alpm_pkg_compute_requiredby(pmpkg_t *pkg)
} }
pmpkg_t *cachepkg = i->data; pmpkg_t *cachepkg = i->data;
if(_alpm_dep_edge(cachepkg, pkg)) { if(_alpm_dep_edge(cachepkg, pkg)) {
const char *cachepkgname = pkg->name; const char *cachepkgname = cachepkg->name;
reqs = alpm_list_add(reqs, strdup(cachepkgname)); reqs = alpm_list_add(reqs, strdup(cachepkgname));
} }
} }