Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=33ec78f757cbcedb3c0ed17fc9cfe1427cf99f25

commit 33ec78f757cbcedb3c0ed17fc9cfe1427cf99f25
Author: Michel Hermier <[email protected]>
Date:   Mon May 20 14:28:22 2013 +0200

libpacman: Use f_stringlist_remove_all.

diff --git a/lib/libpacman/trans.c b/lib/libpacman/trans.c
index b1d3fc1..ec6a950 100644
--- a/lib/libpacman/trans.c
+++ b/lib/libpacman/trans.c
@@ -1243,8 +1243,7 @@ int _pacman_remove_commit(pmtrans_t *trans, pmlist_t 
**data)
}
}
/* splice out this entry from requiredby */
-                       depinfo->requiredby = 
_pacman_list_remove(_pacman_pkg_getinfo(depinfo, PM_PKG_REQUIREDBY), 
info->name, strcmp, (void **)&data);
-                       FREE(data);
+                       depinfo->requiredby = f_stringlist_remove_all 
(_pacman_pkg_getinfo(depinfo, PM_PKG_REQUIREDBY), info->name);
_pacman_log(PM_LOG_DEBUG, _("updating 'requiredby' field for package '%s'"), 
depinfo->name);
if(_pacman_db_write(db, depinfo, INFRQ_DEPENDS)) {
_pacman_log(PM_LOG_ERROR, _("could not update 'requiredby' database entry 
%s-%s"),
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to