Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index e2276695..65dfbeef 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -176,9 +176,9 @@ int add_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name)
goto error;
}
- /* set the reason to EXPLICIT by default
- * it will be overwritten in the case of an upgrade or a sync operation */
- info->reason = PM_PKG_REASON_EXPLICIT;
+ if(trans->flags & PM_TRANS_FLAG_ALLDEPS) {
+ info->reason = PM_PKG_REASON_EXPLICIT;
+ }
/* add the package to the transaction */
trans->packages = pm_list_add(trans->packages, info);