Skip to content
Snippets Groups Projects
Commit 10ba6369 authored by Aaron Griffin's avatar Aaron Griffin
Browse files

* 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)
parent 1cd7567f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
# 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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment