mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 21:38:19 -05:00
fixed string comparison callback (patch from Nagy Gabor)
This commit is contained in:
parent
6f870968ed
commit
187eb7492d
@ -214,7 +214,7 @@ int _alpm_db_load_grpcache(pmdb_t *db)
|
|||||||
/* gross signature forces us to
|
/* gross signature forces us to
|
||||||
* discard const */
|
* discard const */
|
||||||
(void *)alpm_pkg_get_name(pkg),
|
(void *)alpm_pkg_get_name(pkg),
|
||||||
_alpm_grp_cmp);
|
strcmp);
|
||||||
db->grpcache = alpm_list_add_sorted(db->grpcache, grp, _alpm_grp_cmp);
|
db->grpcache = alpm_list_add_sorted(db->grpcache, grp, _alpm_grp_cmp);
|
||||||
} else {
|
} else {
|
||||||
alpm_list_t *j;
|
alpm_list_t *j;
|
||||||
@ -225,7 +225,7 @@ int _alpm_db_load_grpcache(pmdb_t *db)
|
|||||||
if(strcmp(grp->name, i->data) == 0) {
|
if(strcmp(grp->name, i->data) == 0) {
|
||||||
const char *pkgname = alpm_pkg_get_name(pkg);
|
const char *pkgname = alpm_pkg_get_name(pkg);
|
||||||
if(!alpm_list_find_str(grp->packages, pkgname)) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user