From 9eedec6036f6bd8219bc90aa71305a0127649c4c Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 11 Sep 2007 09:13:19 +0300 Subject: [PATCH] rpmtsAddInstallElement() consistency (rhbz#180996, rhbz#281611) Don't error out if the same (or older) package is attempted to add to the transaction, only warn (because we can handle it) --- lib/depends.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/depends.c b/lib/depends.c index 989cb6c..69e6eff 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -214,8 +214,8 @@ int rpmtsAddInstallElement(rpmts ts, Header h, _("package %s was already added, skipping %s\n"), (pkgNEVR ? pkgNEVR + 2 : "?pkgNEVR?"), (addNEVR ? addNEVR + 2 : "?addNEVR?")); - ec = 1; - break; + ec = 0; + goto exit; } /* -- 2.7.4