Pre-requisites of installed packages dont need to be verified (RhBug:223642)
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Apr 2010 06:05:55 +0000 (09:05 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Apr 2010 06:05:55 +0000 (09:05 +0300)
lib/depends.c

index 37bc0df..67d0140 100644 (file)
@@ -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) {