1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 16:28:50 -05:00

* 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)
This commit is contained in:
Aaron Griffin 2007-04-04 04:43:24 +00:00
parent 1cd7567ff8
commit 10ba636987
2 changed files with 12 additions and 1 deletions

View File

@ -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) {

View File

@ -0,0 +1,10 @@
# If someone else can come up with a better name, please do so
self.description = "Remove a package listed 5 times"
p = pmpkg("foo")
self.addpkg2db("local", p)
self.args = "-R " + "foo "*5
self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXISTS=foo")