index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/add.c | 6 |
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); |