From 206a2b42ccc1f41ed2bb04bedd871d93945bfb74 Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 10 Feb 1999 16:25:48 +0000 Subject: [PATCH] Fix inverted args in error message. CVS patchset: 2788 CVS date: 1999/02/10 16:25:48 --- build/parsePreamble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/parsePreamble.c b/build/parsePreamble.c index 3da4a81..07113ad 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -359,14 +359,14 @@ static int handlePreambleTag(Spec spec, Package pkg, int tag, char *macro, if (tag == RPMTAG_VERSION) { if (strchr(field, '-') != NULL) { rpmError(RPMERR_BADSPEC, _("line %d: Illegal char '-' in %s: %s"), - "version", spec->lineNum, spec->line); + spec->lineNum, "version", spec->line); return RPMERR_BADSPEC; } addMacro(spec->macros, "PACKAGE_VERSION", NULL, field, RMIL_OLDSPEC); } else if (tag == RPMTAG_RELEASE) { if (strchr(field, '-') != NULL) { rpmError(RPMERR_BADSPEC, _("line %d: Illegal char '-' in %s: %s"), - "release", spec->lineNum, spec->line); + spec->lineNum, "release", spec->line); return RPMERR_BADSPEC; } addMacro(spec->macros, "PACKAGE_RELEASE", NULL, field, RMIL_OLDSPEC-1); -- 2.7.4