diff options
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 /contrib | |
parent | 619bf56e6613333f319fb1add22fa989060e208d (diff) | |
download | pacman-0ff02995f169d460d60a9512d7fa8257c74ed8f4.tar.xz |
libalpm/package.c : fix requiredby with multiple providers.
The code didn't match the following comment :
"A depends on B through n depends <=> A listed in B's requiredby n times"
It stopped at n=1 with a break.
I was surprised to see this case happens in real, that's how I noticed the
bug: wine depends on both freeglut and glut, while freeglut provides glut.
So when installing wine, the update_depends function listed wine twice in
freeglut's requiredby. But the compute_requiredby function (used when
installing freeglut, and used by testdb) listed wine only once in
freeglut's requiredby. That made testdb unhappy.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions