Fix inverted args in error message.
authorjbj <devnull@localhost>
Wed, 10 Feb 1999 16:25:48 +0000 (16:25 +0000)
committerjbj <devnull@localhost>
Wed, 10 Feb 1999 16:25:48 +0000 (16:25 +0000)
CVS patchset: 2788
CVS date: 1999/02/10 16:25:48

build/parsePreamble.c

index 3da4a81..07113ad 100644 (file)
@@ -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);