summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-04-14 09:05:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-04-14 09:05:55 +0300
commit2e03c07db7e10725be9ccdc13daded2e4bf5b017 (patch)
treeb871613f48c2145faf50b45ca5c9f868125da46b /lib
parentdcaec34d3f07ff688ce16afa77734dd37889ce81 (diff)
downloadrpm-2e03c07db7e10725be9ccdc13daded2e4bf5b017.tar.gz
rpm-2e03c07db7e10725be9ccdc13daded2e4bf5b017.tar.bz2
rpm-2e03c07db7e10725be9ccdc13daded2e4bf5b017.zip
Pre-requisites of installed packages dont need to be verified (RhBug:223642)
Diffstat (limited to 'lib')
-rw-r--r--lib/depends.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/depends.c b/lib/depends.c
index 37bc0df63..67d014071 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) {