summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/filelist.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-16 01:21:35 +0100
committerAllan McRae <allan@archlinux.org>2013-02-24 04:11:54 +0100
commit9995510dc81ab75fbb7ad7ca4fffedf8a5318bef (patch)
treeaf37fe72e675758f238b2e37928f49fbbf2ca16c /lib/libalpm/filelist.c
parent4a1d93b92c76bde58193083812dda94c0fa5d373 (diff)
downloadpacman-9995510dc81ab75fbb7ad7ca4fffedf8a5318bef.tar.gz
pacman-9995510dc81ab75fbb7ad7ca4fffedf8a5318bef.tar.xz
return resolved paths from filelist_intersection
We were comparing files based on resolved paths but returning the original file_t structures, which were not necessarily in the same order. The additional file_t information was never used, so just return the resolved path. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/filelist.c')
-rw-r--r--lib/libalpm/filelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/filelist.c b/lib/libalpm/filelist.c
index c4814a49..5c5f017b 100644
--- a/lib/libalpm/filelist.c
+++ b/lib/libalpm/filelist.c
@@ -299,7 +299,7 @@ alpm_list_t *_alpm_filelist_intersection(alpm_filelist_t *filesA,
/* when not directories, item in both qualifies as an intersect */
if(! (isdirA && isdirB)) {
- ret = alpm_list_add(ret, filesA->files + ctrA);
+ ret = alpm_list_add(ret, filesA->resolved_path[ctrA]);
}
ctrA++;
ctrB++;