...but make sure the pre-requisite isn't also an erasure-dependency
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Apr 2010 06:22:07 +0000 (09:22 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Apr 2010 06:22:07 +0000 (09:22 +0300)
- fixes eg Requires(pre,postun) case which must not be filtered out here

lib/depends.c

index 67d0140..35b11de 100644 (file)
@@ -387,7 +387,7 @@ retry:
     }
 
     /* Dont look at pre-requisites of already installed packages */
-    if (!adding && isInstallPreReq(dsflags))
+    if (!adding && isInstallPreReq(dsflags) && !isErasePreReq(dsflags))
        goto exit;
 
     /* Pretrans dependencies can't be satisfied by added packages. */