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

commit 2b57ee8f0ad809500c1fa5928e42d5eb9474d356
Author: Michel Hermier <herm...@frugalware.org>
Date:   Wed May 15 18:40:24 2013 +0200

libpacman: No need to add resolved dependencies in _pacman_sync_prepare, 
_pacman_resolvedeps allready do it.

diff --git a/lib/libpacman/trans.c b/lib/libpacman/trans.c
index cea95fb..0ef4d58 100644
--- a/lib/libpacman/trans.c
+++ b/lib/libpacman/trans.c
@@ -590,9 +590,7 @@ int _pacman_sync_prepare (pmtrans_t *trans, pmlist_t **data)
for (i = trans->_packages; i; i = i->next) {
/* add the dependencies found by resolvedeps to the transaction set */
pmpkg_t *spkg = i->data;
-                       if(!__pacman_trans_get_trans_pkg(trans, spkg->name)) {
-                               _pacman_trans_add_pkg (trans, spkg, 
PM_TRANS_TYPE_UPGRADE, 0);
-                       } else {
+                       if(__pacman_trans_get_trans_pkg(trans, spkg->name) != 
NULL) {
/* remove the original targets from the list if requested */
if((trans->flags & PM_TRANS_FLAG_DEPENDSONLY)) {
/* they are just pointers so we don't have to free them */
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to