From: Panu Matilainen Date: Wed, 14 Apr 2010 06:05:55 +0000 (+0300) Subject: Pre-requisites of installed packages dont need to be verified (RhBug:223642) X-Git-Tag: rpm-4.9.0-beta1~654 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e03c07db7e10725be9ccdc13daded2e4bf5b017;p=platform%2Fupstream%2Frpm.git Pre-requisites of installed packages dont need to be verified (RhBug:223642) --- diff --git a/lib/depends.c b/lib/depends.c index 37bc0df..67d0140 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -386,6 +386,10 @@ retry: goto unsatisfied; } + /* Dont look at pre-requisites of already installed packages */ + if (!adding && isInstallPreReq(dsflags)) + goto exit; + /* Pretrans dependencies can't be satisfied by added packages. */ if (!(dsflags & RPMSENSE_PRETRANS) && rpmalSatisfiesDepend(tsmem->addedPackages, dep) != NULL) {