ALT Linux Bugzilla
– Attachment 398 Details for
Bug 3883
RPM error reporting is too concise for wrong package dependencies
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Proposed change
rpm-4_0-parseRCPOT.patch (text/plain), 2.18 KB, created by
Dmitry V. Levin
on 2004-04-26 17:31:54 MSD
(
hide
)
Description:
Proposed change
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2004-04-26 17:31:54 MSD
Size:
2.18 KB
patch
obsolete
>--- build/parseReqs.c 27 Jan 2004 10:56:42 -0000 1.3 >+++ build/parseReqs.c 25 Apr 2004 10:34:53 -0000 1.4 >@@ -99,7 +99,7 @@ int parseRCPOT(Spec spec, Package pkg, c > if (!(xisalnum(r[0]) || r[0] == '_' || r[0] == '/')) { > rpmError(RPMERR_BADSPEC, > _("line %d: Dependency tokens must begin with alpha-numeric, '_' or '/': %s\n"), >- spec->lineNum, spec->line); >+ spec->lineNum, (spec->fileStack ? spec->line : field)); > return RPMERR_BADSPEC; > } > >@@ -110,7 +110,7 @@ int parseRCPOT(Spec spec, Package pkg, c > case RPMTAG_BUILDCONFLICTS: > if (r[0] == '/') { > rpmError(RPMERR_BADSPEC,_("line %d: File name not permitted: %s\n"), >- spec->lineNum, spec->line); >+ spec->lineNum, (spec->fileStack ? spec->line : field)); > return RPMERR_BADSPEC; > } > /*@switchbreak@*/ break; >@@ -128,7 +128,7 @@ int parseRCPOT(Spec spec, Package pkg, c > if (strpbrk (req, "%<=>")) { > rpmError(RPMERR_BADSPEC, > _("line %d: Dependency tokens must not contain '%%<=>' symbols: %s\n"), >- spec->lineNum, spec->line); >+ spec->lineNum, (spec->fileStack ? spec->line : field)); > return RPMERR_BADSPEC; > } > >@@ -150,7 +150,7 @@ int parseRCPOT(Spec spec, Package pkg, c > if (r[0] == '/') { > rpmError(RPMERR_BADSPEC, > _("line %d: Versioned file name not permitted: %s\n"), >- spec->lineNum, spec->line); >+ spec->lineNum, (spec->fileStack ? spec->line : field)); > return RPMERR_BADSPEC; > } > >@@ -181,7 +181,7 @@ int parseRCPOT(Spec spec, Package pkg, c > if (flags & RPMSENSE_SENSEMASK) { > if (*v == '\0' || ve == v) { > rpmError(RPMERR_BADSPEC, _("line %d: Version required: %s\n"), >- spec->lineNum, spec->line); >+ spec->lineNum, (spec->fileStack ? spec->line : field)); > return RPMERR_BADSPEC; > } > version = xmalloc((ve-v) + 1); >@@ -196,7 +196,7 @@ int parseRCPOT(Spec spec, Package pkg, c > if (version && strpbrk (version, "%<=>")) { > rpmError(RPMERR_BADSPEC, > _("line %d: Dependency tokens must not contain '%%<=>' symbols: %s\n"), >- spec->lineNum, spec->line); >+ spec->lineNum, (spec->fileStack ? spec->line : field)); > req = _free(req); > version = _free(version); > return RPMERR_BADSPEC;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3883
:
366
| 398