print conflict problems differently then missing dependencies
authorewt <devnull@localhost>
Sun, 20 Oct 1996 19:29:34 +0000 (19:29 +0000)
committerewt <devnull@localhost>
Sun, 20 Oct 1996 19:29:34 +0000 (19:29 +0000)
CVS patchset: 1110
CVS date: 1996/10/20 19:29:34

install.c

index 8b72282..abd6a60 100644 (file)
--- a/install.c
+++ b/install.c
@@ -409,7 +409,12 @@ static void printDepProblems(FILE * f, struct rpmDependencyConflict * conflicts,
            printDepFlags(stderr, conflicts[i].needsVersion, 
                          conflicts[i].needsFlags);
        }
-       fprintf(f, " is needed by %s-%s-%s\n", conflicts[i].byName, 
-               conflicts[i].byVersion, conflicts[i].byRelease);
+
+       if (conflicts[i].sense == RPMDEP_SENSE_REQUIRES) 
+           fprintf(f, " is needed by %s-%s-%s\n", conflicts[i].byName, 
+                   conflicts[i].byVersion, conflicts[i].byRelease);
+       else
+           fprintf(f, " conflicts with %s-%s-%s\n", conflicts[i].byName, 
+                   conflicts[i].byVersion, conflicts[i].byRelease);
     }
 }