summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-10-20 19:29:34 +0000
committerewt <devnull@localhost>1996-10-20 19:29:34 +0000
commit6e5691a4ff571cb8b8bdd15ab2720917ea89ef15 (patch)
tree60cf8dc023709d46744d8c24bdb314968ca2dc38
parent394f7abfbc0bf78fc335b32cfe85b7b155dac1f3 (diff)
downloadrpm-6e5691a4ff571cb8b8bdd15ab2720917ea89ef15.tar.gz
rpm-6e5691a4ff571cb8b8bdd15ab2720917ea89ef15.tar.bz2
rpm-6e5691a4ff571cb8b8bdd15ab2720917ea89ef15.zip
print conflict problems differently then missing dependencies
CVS patchset: 1110 CVS date: 1996/10/20 19:29:34
-rw-r--r--install.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/install.c b/install.c
index 8b72282ae..abd6a60f2 100644
--- 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);
}
}