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

commit f41fb4aa804dc9f84ab544ce71d238a1b528600b
Author: Michel Hermier <[email protected]>
Date:   Fri May 2 08:06:18 2014 +0200

libpacman: Remove all PM_PKG_REQUIREDBY usage outside of package.cpp and 
pacman.cpp.

diff --git a/lib/libpacman/deps.cpp b/lib/libpacman/deps.cpp
index 9432d71..1cc0ea9 100644
--- a/lib/libpacman/deps.cpp
+++ b/lib/libpacman/deps.cpp
@@ -235,7 +235,7 @@ pmlist_t *_pacman_checkdeps(pmtrans_t *trans, unsigned char 
op, pmlist_t *packag
if((oldpkg = _pacman_db_get_pkgfromcache(db_local, tp->name())) == NULL) {
continue;
}
-                       for(j = oldpkg->getinfo(PM_PKG_REQUIREDBY); j; j = 
j->next) {
+                       for(j = oldpkg->requiredby(); j; j = j->next) {
//char *ver;
Package *p;
found = 0;
@@ -408,7 +408,7 @@ pmlist_t *_pacman_checkdeps(pmtrans_t *trans, unsigned char 
op, pmlist_t *packag
}

found=0;
-                       for(j = tp->getinfo(PM_PKG_REQUIREDBY); j; j = j->next) 
{
+                       for(j = tp->requiredby(); j; j = j->next) {
if(!_pacman_list_is_strin((char *)j->data, packages)) {
/* check if a package in trans->packages provides this package */
for(k=trans->packages; !found && k; k=k->next) {
@@ -541,7 +541,7 @@ pmlist_t *_pacman_removedeps(Database *db, pmlist_t *targs)
}

/* see if other packages need it */
-                       for(k = dep->getinfo(PM_PKG_REQUIREDBY); k && !needed; 
k = k->next) {
+                       for(k = dep->requiredby(); k && !needed; k = k->next) {
Package *dummy = _pacman_db_get_pkgfromcache(db, k->data);
if(!_pacman_pkg_isin(dummy->name(), targs)) {
needed = 1;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to