summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-04-04 04:43:24 +0000
committerAaron Griffin <aaron@archlinux.org>2007-04-04 04:43:24 +0000
commit10ba6369871c4301f3a976eef52c025098a1391a (patch)
tree229433a1f7b947861cfe88d2bbe7508d4c137027 /lib/libalpm
parent1cd7567ff8af4bcc2813eb0f104fdab8ef0f7c53 (diff)
downloadpacman-10ba6369871c4301f3a976eef52c025098a1391a.tar.xz
* Fix FS#6798 - there is no reason to fail on a duplicate removal target
Added a pactest case for this ("-R foo foo foo foo foo" should do what is expected)
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/trans.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 1198292f..009ec7f1 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -135,7 +135,8 @@ int _alpm_trans_addtarget(pmtrans_t *trans, char *target)
ASSERT(target != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -1));
if(alpm_list_find_str(trans->targets, target)) {
- RET_ERR(PM_ERR_TRANS_DUP_TARGET, -1);
+ return(0);
+ //RET_ERR(PM_ERR_TRANS_DUP_TARGET, -1);
}
switch(trans->type) {