Make "not an rpm or manifest" message an error, not just notice
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 6 Oct 2008 15:49:33 +0000 (18:49 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 6 Oct 2008 15:49:33 +0000 (18:49 +0300)
lib/rpmgi.c
lib/rpminstall.c

index 1b921c1..ababaed 100644 (file)
@@ -188,7 +188,7 @@ static rpmRC rpmgiLoadReadHeader(rpmgi gi)
        rpmrc = rpmgiLoadManifest(gi, fn);
        if (rpmrc != RPMRC_OK) {
            gi->argv[gi->i] = fn;       /* Manifest failed, restore fn */
-           rpmlog(RPMLOG_NOTICE
+           rpmlog(RPMLOG_ERR
                   _("%s: not an rpm package (or package manifest)\n"), fn);
            break;
        }
index 8a9080f..4a972eb 100644 (file)
@@ -493,7 +493,7 @@ maybe_manifest:
 /* FIX: *eiu->argv can be NULL */
        rc = rpmReadPackageManifest(eiu->fd, &eiu->argc, &eiu->argv);
        if (rc != RPMRC_OK)
-           rpmlog(RPMLOG_NOTICE, _("%s: not an rpm package (or package manifest): %s\n"),
+           rpmlog(RPMLOG_ERR, _("%s: not an rpm package (or package manifest): %s\n"),
                        *eiu->fnp, Fstrerror(eiu->fd));
        xx = Fclose(eiu->fd);
        eiu->fd = NULL;