summaryrefslogtreecommitdiff
path: root/rpmio/messages.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-24 14:54:23 +0000
committerjbj <devnull@localhost>1999-09-24 14:54:23 +0000
commitaa3a086ba2e1a4ecc2deaba687ed8d71426df217 (patch)
tree4bf99471a60a2f90a16246fa7161d34a6f962c86 /rpmio/messages.c
parentcdaf55aa9c8ba8c4f31b0e8974cc0617f4cf04ed (diff)
downloadlibrpm-tizen-aa3a086ba2e1a4ecc2deaba687ed8d71426df217.tar.gz
librpm-tizen-aa3a086ba2e1a4ecc2deaba687ed8d71426df217.tar.bz2
librpm-tizen-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 'rpmio/messages.c')
-rw-r--r--rpmio/messages.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/rpmio/messages.c b/rpmio/messages.c
index e968247ec..72595b2bd 100644
--- a/rpmio/messages.c
+++ b/rpmio/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);