diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-10 18:19:06 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-10 18:19:06 +0000 |
commit | 668e58626dfdb1077f3e1eb47187f6071d3ed302 (patch) | |
tree | aae9dc8dcb8ab98cf6a7c8e72e7309500872c181 /lib/libalpm/add.c | |
parent | ec305c14439ac0c6eeee66bd99c9bcf8ab72577f (diff) | |
download | pacman-668e58626dfdb1077f3e1eb47187f6071d3ed302.tar.xz |
added ALLDEPS transaction flag mainly to handle "makepkg -s"
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r-- | lib/libalpm/add.c | 6 |
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); |