summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-12-07 22:48:59 -0600
committerDan McGee <dan@archlinux.org>2009-12-07 22:48:59 -0600
commit926dfe5827d13a38f02efb2da1d9ceab38e9fc16 (patch)
tree0f736e488cca8f5889993d7171d86ec62cfa995f /lib/libalpm
parent03f35b1432675f5b10ec53945e48c2bbd7c628e9 (diff)
downloadpacman-926dfe5827d13a38f02efb2da1d9ceab38e9fc16.tar.xz
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>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 83a2fb8f..4ff04dab 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -573,7 +573,7 @@ alpm_list_t SYMEXPORT *alpm_pkg_compute_requiredby(pmpkg_t *pkg)
}
pmpkg_t *cachepkg = i->data;
if(_alpm_dep_edge(cachepkg, pkg)) {
- const char *cachepkgname = pkg->name;
+ const char *cachepkgname = cachepkg->name;
reqs = alpm_list_add(reqs, strdup(cachepkgname));
}
}