diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-11-19 16:25:24 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-11-19 16:25:24 +0200 |
commit | 43c5de66fb90cbc59dc23eb0774d66c66d34b37d (patch) | |
tree | 1e43219542c3ce060b4ce3c430a38aed45a62767 /build/parseReqs.c | |
parent | db4e34966ed9d52a920ab1b135309e6e21f12473 (diff) | |
download | librpm-tizen-43c5de66fb90cbc59dc23eb0774d66c66d34b37d.tar.gz librpm-tizen-43c5de66fb90cbc59dc23eb0774d66c66d34b37d.tar.bz2 librpm-tizen-43c5de66fb90cbc59dc23eb0774d66c66d34b37d.zip |
Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels
Diffstat (limited to 'build/parseReqs.c')
-rw-r--r-- | build/parseReqs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/parseReqs.c b/build/parseReqs.c index 2d7066657..0b3e77e72 100644 --- a/build/parseReqs.c +++ b/build/parseReqs.c @@ -97,10 +97,10 @@ int parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN, /* Tokens must begin with alphanumeric, _, or / */ if (!(xisalnum(r[0]) || r[0] == '_' || r[0] == '/')) { - rpmlog(RPMERR_BADSPEC, + rpmlog(RPMLOG_ERR, _("line %d: Dependency tokens must begin with alpha-numeric, '_' or '/': %s\n"), spec->lineNum, spec->line); - return RPMERR_BADSPEC; + return RPMLOG_ERR; } re = r; @@ -125,10 +125,10 @@ int parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN, continue; if (r[0] == '/') { - rpmlog(RPMERR_BADSPEC, + rpmlog(RPMLOG_ERR, _("line %d: Versioned file name not permitted: %s\n"), spec->lineNum, spec->line); - return RPMERR_BADSPEC; + return RPMLOG_ERR; } switch(tagN) { @@ -156,9 +156,9 @@ int parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN, if (Flags & RPMSENSE_SENSEMASK) { if (*v == '\0' || ve == v) { - rpmlog(RPMERR_BADSPEC, _("line %d: Version required: %s\n"), + rpmlog(RPMLOG_ERR, _("line %d: Version required: %s\n"), spec->lineNum, spec->line); - return RPMERR_BADSPEC; + return RPMLOG_ERR; } EVR = xmalloc((ve-v) + 1); strncpy(EVR, v, (ve-v)); |