diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-06 18:50:30 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-06 18:50:30 +0300 |
commit | 30a975b9839b3cb15a8cd9c1ead454464523028a (patch) | |
tree | d835c229522819cfd4db52e335d98b2442b2d882 | |
parent | bcda17901e38adacad42226164057f4b357ce9a6 (diff) | |
download | librpm-tizen-30a975b9839b3cb15a8cd9c1ead454464523028a.tar.gz librpm-tizen-30a975b9839b3cb15a8cd9c1ead454464523028a.tar.bz2 librpm-tizen-30a975b9839b3cb15a8cd9c1ead454464523028a.zip |
Malformed query query items (pkid's and such) are errors
-rw-r--r-- | lib/query.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/query.c b/lib/query.c index 1a317ae4a..519fbdd4a 100644 --- a/lib/query.c +++ b/lib/query.c @@ -363,7 +363,7 @@ int rpmQueryVerify(QVA_t qva, rpmts ts, const char * arg) for (i = 0, s = arg; *s && isxdigit(*s); s++, i++) {}; if (i != 32) { - rpmlog(RPMLOG_NOTICE, _("malformed %s: %s\n"), "pkgid", arg); + rpmlog(RPMLOG_ERR, _("malformed %s: %s\n"), "pkgid", arg); return 1; } @@ -384,7 +384,7 @@ int rpmQueryVerify(QVA_t qva, rpmts ts, const char * arg) for (i = 0, s = arg; *s && isxdigit(*s); s++, i++) {}; if (i != 40) { - rpmlog(RPMLOG_NOTICE, _("malformed %s: %s\n"), "hdrid", arg); + rpmlog(RPMLOG_ERR, _("malformed %s: %s\n"), "hdrid", arg); return 1; } @@ -528,14 +528,14 @@ int rpmQueryVerify(QVA_t qva, rpmts ts, const char * arg) } recOffset = strtoul(myarg, &end, mybase); if ((*end) || (end == arg) || (recOffset == ULONG_MAX)) { - rpmlog(RPMLOG_NOTICE, _("invalid package number: %s\n"), arg); + rpmlog(RPMLOG_ERR, _("invalid package number: %s\n"), arg); return 1; } rpmlog(RPMLOG_DEBUG, "package record number: %lu\n", recOffset); /* RPMDBI_PACKAGES */ qva->qva_mi = rpmtsInitIterator(ts, RPMDBI_PACKAGES, &recOffset, sizeof(recOffset)); if (qva->qva_mi == NULL) { - rpmlog(RPMLOG_NOTICE, + rpmlog(RPMLOG_ERR, _("record %lu could not be read\n"), recOffset); res = 1; } else |