diff options
author | jbj <devnull@localhost> | 1999-09-24 14:54:23 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-09-24 14:54:23 +0000 |
commit | aa3a086ba2e1a4ecc2deaba687ed8d71426df217 (patch) | |
tree | 4bf99471a60a2f90a16246fa7161d34a6f962c86 /lib/messages.c | |
parent | cdaf55aa9c8ba8c4f31b0e8974cc0617f4cf04ed (diff) | |
download | rpm-aa3a086ba2e1a4ecc2deaba687ed8d71426df217.tar.gz rpm-aa3a086ba2e1a4ecc2deaba687ed8d71426df217.tar.bz2 rpm-aa3a086ba2e1a4ecc2deaba687ed8d71426df217.zip |
fix: version compares compatible with epoch-less requires/conflicts.
CVS patchset: 3323
CVS date: 1999/09/24 14:54:23
Diffstat (limited to 'lib/messages.c')
-rw-r--r-- | lib/messages.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/messages.c b/lib/messages.c index e968247ec..72595b2bd 100644 --- a/lib/messages.c +++ b/lib/messages.c @@ -42,25 +42,37 @@ void rpmMessage(int level, const char * format, ...) { break; case RPMMESS_DEBUG: - fprintf(stdout, "D: "); + if (*format != '+') + fprintf(stdout, "D: "); + else + format++; vfprintf(stdout, format, args); fflush(stdout); break; case RPMMESS_WARNING: - fprintf(stderr, _("warning: ")); + if (*format != '+') + fprintf(stderr, _("warning: ")); + else + format++; vfprintf(stderr, format, args); fflush(stderr); break; case RPMMESS_ERROR: - fprintf(stderr, _("error: ")); + if (*format != '+') + fprintf(stderr, _("error: ")); + else + format++; vfprintf(stderr, format, args); fflush(stderr); break; case RPMMESS_FATALERROR: - fprintf(stderr, _("fatal error: ")); + if (*format != '+') + fprintf(stderr, _("fatal error: ")); + else + format++; vfprintf(stderr, format, args); fflush(stderr); exit(EXIT_FAILURE); |