[pacman-dev] CVS update of pacman-lib/lib/libalpm (cache.c)
Juergen Hoetzel
juergen at archlinux.org
Fri Mar 9 18:26:33 EST 2007
Date: Friday, March 9, 2007 @ 18:26:33
Author: juergen
Path: /home/cvs-pacman/pacman-lib/lib/libalpm
Modified: cache.c (1.38 -> 1.39)
fixed string comparison callback (patch from Nagy Gabor)
---------+
cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: pacman-lib/lib/libalpm/cache.c
diff -u pacman-lib/lib/libalpm/cache.c:1.38 pacman-lib/lib/libalpm/cache.c:1.39
--- pacman-lib/lib/libalpm/cache.c:1.38 Mon Mar 5 17:13:33 2007
+++ pacman-lib/lib/libalpm/cache.c Fri Mar 9 18:26:33 2007
@@ -214,7 +214,7 @@
/* gross signature forces us to
* discard const */
(void *)alpm_pkg_get_name(pkg),
- _alpm_grp_cmp);
+ strcmp);
db->grpcache = alpm_list_add_sorted(db->grpcache, grp, _alpm_grp_cmp);
} else {
alpm_list_t *j;
@@ -225,7 +225,7 @@
if(strcmp(grp->name, i->data) == 0) {
const char *pkgname = alpm_pkg_get_name(pkg);
if(!alpm_list_find_str(grp->packages, pkgname)) {
- grp->packages = alpm_list_add_sorted(grp->packages, (void *)pkgname, _alpm_grp_cmp);
+ grp->packages = alpm_list_add_sorted(grp->packages, (void *)pkgname, strcmp);
}
}
}
More information about the pacman-dev
mailing list